Author Topic: Internal commands  (Read 256819 times)

FIQ

  • Captain
  • *****
  • Posts: 810
  • https://github.com/FredrIQ/
    • View Profile
    • FIQ
Re: Internal commands
« Reply #345 on: October 20, 2012, 03:05:59 PM »
How about Mac users? Are you just going to ignore them in case you do a level with internal commands?

Dav999 will be very happy when he hears about it ;)

You ever heard of WINE? Well, VVVVVV 2.1 runs fine on it.
I use Wine myself (on Linux) and told Dav999 about it. He didn't want to use it to run vvvvvv2.1, and it would feel very wrong to do personally just to get some extra features..

allison

  • Captain
  • *****
  • Posts: 924
  • monolithic since 2012??
    • View Profile
    • Allison Fleischer
Re: Internal commands
« Reply #346 on: October 20, 2012, 07:48:26 PM »
How about Mac users? Are you just going to ignore them in case you do a level with internal commands?

Dav999 will be very happy when he hears about it ;)

You ever heard of WINE? Well, VVVVVV 2.1 runs fine on it.

So, WINE supports converting Windows patches into Mac ones? Or is there some other way to run VVVVVV 2.1 without the 2.0 or whatever .exe or .app?

No, it runs Windows programs, so it runs the .exe. It doesn't convert it into a .app, or to a patch of a .app.

My point is, unless I'm missing something big, the 2.1 update is a patch that won't run by itself, so I would need some way to run it, as there is (as many have complained about, including me) no Mac patch.

RibShark

  • Crewmate
  • **
  • Posts: 23
    • View Profile
Re: Internal commands
« Reply #347 on: October 21, 2012, 01:15:40 AM »
My point is, unless I'm missing something big, the 2.1 update is a patch that won't run by itself, so I would need some way to run it, as there is (as many have complained about, including me) no Mac patch.

1) Install Wine
2) Install VVVVVV 2.0 using Wine.
3) Find the directory Wine places the C:\ drive (I don't know where it is on a mac).
4) Place the patch files in that directory.
5) ...
6) Profit!

allison

  • Captain
  • *****
  • Posts: 924
  • monolithic since 2012??
    • View Profile
    • Allison Fleischer
Re: Internal commands
« Reply #348 on: October 21, 2012, 07:17:19 AM »
My point is, unless I'm missing something big, the 2.1 update is a patch that won't run by itself, so I would need some way to run it, as there is (as many have complained about, including me) no Mac patch.

1) Install Wine
2) Install VVVVVV 2.0 using Wine.
3) Find the directory Wine places the C:\ drive (I don't know where it is on a mac).
4) Place the patch files in that directory.
5) ...
6) Profit!

Oops I should have been more clear. It seems that I would have to re-buy VVVVVV to get 2.0...

Hmm...  :verdigris:

FIQ

  • Captain
  • *****
  • Posts: 810
  • https://github.com/FredrIQ/
    • View Profile
    • FIQ
Re: Internal commands
« Reply #349 on: October 21, 2012, 07:44:24 AM »
My point is, unless I'm missing something big, the 2.1 update is a patch that won't run by itself, so I would need some way to run it, as there is (as many have complained about, including me) no Mac patch.

1) Install Wine
2) Install VVVVVV 2.0 using Wine.
3) Find the directory Wine places the C:\ drive (I don't know where it is on a mac).
4) Place the patch files in that directory.
5) ...
6) Profit!

Oops I should have been more clear. It seems that I would have to re-buy VVVVVV to get 2.0...

Hmm...  :verdigris:
Where did you buy it?

If you don't have access to the Windows build, Terry is probably happy to help.

The "patch" is just an .exe, replace the VVVVVV 2.0 .exe that you get and you have 2.1 installed.
« Last Edit: October 21, 2012, 07:46:20 AM by FIQ »

allison

  • Captain
  • *****
  • Posts: 924
  • monolithic since 2012??
    • View Profile
    • Allison Fleischer
Re: Internal commands
« Reply #350 on: October 21, 2012, 05:09:55 PM »
My point is, unless I'm missing something big, the 2.1 update is a patch that won't run by itself, so I would need some way to run it, as there is (as many have complained about, including me) no Mac patch.

1) Install Wine
2) Install VVVVVV 2.0 using Wine.
3) Find the directory Wine places the C:\ drive (I don't know where it is on a mac).
4) Place the patch files in that directory.
5) ...
6) Profit!

Oops I should have been more clear. It seems that I would have to re-buy VVVVVV to get 2.0...

Hmm...  :verdigris:
Where did you buy it?

If you don't have access to the Windows build, Terry is probably happy to help.

The "patch" is just an .exe, replace the VVVVVV 2.0 .exe that you get and you have 2.1 installed.

So wait, the solution has been under my nose the whole time and I can just download the 2.1 .exe and run it under Wine?  :-[

FIQ

  • Captain
  • *****
  • Posts: 810
  • https://github.com/FredrIQ/
    • View Profile
    • FIQ
Re: Internal commands
« Reply #351 on: October 21, 2012, 05:39:41 PM »
My point is, unless I'm missing something big, the 2.1 update is a patch that won't run by itself, so I would need some way to run it, as there is (as many have complained about, including me) no Mac patch.

1) Install Wine
2) Install VVVVVV 2.0 using Wine.
3) Find the directory Wine places the C:\ drive (I don't know where it is on a mac).
4) Place the patch files in that directory.
5) ...
6) Profit!

Oops I should have been more clear. It seems that I would have to re-buy VVVVVV to get 2.0...

Hmm...  :verdigris:
Where did you buy it?

If you don't have access to the Windows build, Terry is probably happy to help.

The "patch" is just an .exe, replace the VVVVVV 2.0 .exe that you get and you have 2.1 installed.

So wait, the solution has been under my nose the whole time and I can just download the 2.1 .exe and run it under Wine?  :-[
As long as you have a 2.0 windows install.

allison

  • Captain
  • *****
  • Posts: 924
  • monolithic since 2012??
    • View Profile
    • Allison Fleischer
Re: Internal commands
« Reply #352 on: October 23, 2012, 05:33:34 AM »
My point is, unless I'm missing something big, the 2.1 update is a patch that won't run by itself, so I would need some way to run it, as there is (as many have complained about, including me) no Mac patch.

1) Install Wine
2) Install VVVVVV 2.0 using Wine.
3) Find the directory Wine places the C:\ drive (I don't know where it is on a mac).
4) Place the patch files in that directory.
5) ...
6) Profit!

Oops I should have been more clear. It seems that I would have to re-buy VVVVVV to get 2.0...

Hmm...  :verdigris:
Where did you buy it?

If you don't have access to the Windows build, Terry is probably happy to help.

The "patch" is just an .exe, replace the VVVVVV 2.0 .exe that you get and you have 2.1 installed.

So wait, the solution has been under my nose the whole time and I can just download the 2.1 .exe and run it under Wine?  :-[
As long as you have a 2.0 windows install.

And so, we have my problem. I only have the Mac install, not the Windows install.

FIQ

  • Captain
  • *****
  • Posts: 810
  • https://github.com/FredrIQ/
    • View Profile
    • FIQ
Re: Internal commands
« Reply #353 on: October 23, 2012, 08:22:51 AM »
My point is, unless I'm missing something big, the 2.1 update is a patch that won't run by itself, so I would need some way to run it, as there is (as many have complained about, including me) no Mac patch.

1) Install Wine
2) Install VVVVVV 2.0 using Wine.
3) Find the directory Wine places the C:\ drive (I don't know where it is on a mac).
4) Place the patch files in that directory.
5) ...
6) Profit!

Oops I should have been more clear. It seems that I would have to re-buy VVVVVV to get 2.0...

Hmm...  :verdigris:
Where did you buy it?

If you don't have access to the Windows build, Terry is probably happy to help.

The "patch" is just an .exe, replace the VVVVVV 2.0 .exe that you get and you have 2.1 installed.

So wait, the solution has been under my nose the whole time and I can just download the 2.1 .exe and run it under Wine?  :-[
As long as you have a 2.0 windows install.

And so, we have my problem. I only have the Mac install, not the Windows install.
You can do it with a Mac install too, as you have the data directory (the only unavailable thing here).

VVVVVV need some libraries to work, all publicly accessible on the web (the data files however aren't, obviously).

You should need these:
Code: [Select]
[632][fiq@fiq /win_drive/Program_x86/Steam/steamapps/common/vvvvvv]$ ls
data/          libpng12-0.dll*   libvorbisfile-3.dll*  readme.txt*  SDL_image.dll*  stdout.txt*  zlib1.dll*
libogg-0.dll*  libvorbis-0.dll*  mikmod.dll*           SDL.dll*     SDL_mixer.dll*  VVVVVV.exe*

Create a directory, name it whatever you want, "vvvvvv" or something.
Copy (or move, if you want to get rid of your mac install - not recommended...) your data directory inside the newly created folder like this: vvvvvv/data

Download the DLL files in the list above, should be easy to find by googling on them.

Place the VVVVVV 2.1 .exe in the folder

Run the game.

EDIT: The Windows version of VVVVVV is only available in 32-bit IIRC. Therefore, make sure you have the 32-bit version of the libraries.

Windows version of VVVVVV store levels and saves in the user's "my documents" folder like this:
<My Documents>/VVVVVV/(levelname)
<My Documents>/VVVVVV/Saves/(levelname/tsave/qsave/unlock).vvv

So if you want to move your levels and saves, place them in this format. In linux, they're stored the "opposite" way, a .vvvvvv directory with saves, and a directory inside named "levels" where the levels go. I don't know how they're stored in Mac, but make sure that you swap directory structure if necessary.

You might also run into an issue regarding a white screen when VVVVVV start up (screen is white, but game is responsive). If you stumble upon this, refer to the topic in the "Tech Support" forum for my solution.

If you find this way too complicated, just mail Terry and he'll help you for sure (if you have bought the game, obviously :P)
« Last Edit: October 23, 2012, 08:33:42 AM by FIQ »

Dav999

  • Global Moderator
  • Captain
  • *****
  • Posts: 2173
    • View Profile
    • The Open Level Project
Re: Internal commands
« Reply #354 on: October 23, 2012, 09:04:37 AM »
Uuhm... Isn't that a handy post for pirates? :o

FIQ

  • Captain
  • *****
  • Posts: 810
  • https://github.com/FredrIQ/
    • View Profile
    • FIQ
Re: Internal commands
« Reply #355 on: October 23, 2012, 02:05:43 PM »
Uuhm... Isn't that a handy post for pirates? :o
Not at all.
The only thing they have to do really is to download the datafiles. Heck, the Pandora version of VVVVVV ships with game binaries AND libs, and asks for the same -- the data directory.

If Terry feels different, feel free to delete my post.


Anyway...

If you play around with scripts and especially iftrinkets(0,script), and it somehow makes the script not run AT ALL -- please note this:

Code: [Select]
Name: script
iftrinkets(0,do0)

Name: do0
ifflag(1,do1)
ifflag(2,do2)
iftrinkets(0,do3)

Name: do1
say
1

Name: do2
say
2

Name: do3
say
3

will do *NOTHING*. Not the expected -- output 3 (assuming flag 1 isn't set and flag 2 isn't set.

This can be worked around (for some weird reason) by modifying do0 into this:

Code: [Select]
Name: do0
ifflag(1,do1)
ifflag(2,do2)
iftrinkets(0,do3)
ifflag(work,around)

(What ifflag() contains is irrelevant, it will never trigger, but will for some reason "fix" the bug. Any ideas why?)
« Last Edit: October 23, 2012, 02:07:35 PM by FIQ »

Dav999

  • Global Moderator
  • Captain
  • *****
  • Posts: 2173
    • View Profile
    • The Open Level Project
Re: Internal commands
« Reply #356 on: October 23, 2012, 02:13:07 PM »
Oh, I also got that problem with redirecting to other scripts, when they were too long. iftrinkets(0,script) didn't work when it was at the end, and after a long time, I fixed it by placing a say command after that, saying an error has occurred (only if it won't redirect for some reason)

Oh, and I don't think you -need- readme.txt :P

FIQ

  • Captain
  • *****
  • Posts: 810
  • https://github.com/FredrIQ/
    • View Profile
    • FIQ
Re: Internal commands
« Reply #357 on: October 24, 2012, 06:33:01 AM »
Oh, I also got that problem with redirecting to other scripts, when they were too long. iftrinkets(0,script) didn't work when it was at the end, and after a long time, I fixed it by placing a say command after that, saying an error has occurred (only if it won't redirect for some reason)

Oh, and I don't think you -need- readme.txt :P
I said download the .dll files specified, I didn't even mention the text files. :P

Dav999

  • Global Moderator
  • Captain
  • *****
  • Posts: 2173
    • View Profile
    • The Open Level Project
Re: Internal commands
« Reply #358 on: October 24, 2012, 06:56:13 AM »
You should need these:
Code: [Select]
[632][fiq@fiq /win_drive/Program_x86/Steam/steamapps/common/vvvvvv]$ ls
data/          libpng12-0.dll*   libvorbisfile-3.dll*  readme.txt*  SDL_image.dll*  stdout.txt*  zlib1.dll*
libogg-0.dll*  libvorbis-0.dll*  mikmod.dll*           SDL.dll*     SDL_mixer.dll*  VVVVVV.exe*

readme.txt*.

ToasterApocalypse

  • Captain
  • *****
  • Posts: 1010
  • le lenny face
    • View Profile
Re: Internal commands
« Reply #359 on: November 01, 2012, 10:07:08 AM »
Err... Ok. I still check this thread for commands and stuff. I think we've discussed all of them.

Lets discuss changetile again.