You are here

Tick5 (connect 5 game)

6 posts / 0 new
Last post
millarrp
Offline
Last seen: 10 years 5 months ago
Joined: 2007-03-02 13:43
Tick5 (connect 5 game)

I stumbled across this game on sourceforge.net and it seems like a simple and entertaining game.

the point of the game is to get 5 "ticks" in a row, either horizontally, vertically, or diagonally.

it's written in c++ and since it's hosted on sourceforge.net I'm assuming it's open source.

http://tick5.sourceforge.net/

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
I'll take a look

I'll have a look at it over this weekend.
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 7 years 5 months ago
Joined: 2006-11-18 10:26
Well, believe it or not,

Well, believe it or not, this app my be just what I need to get my feet wet building my first portable app.

I used Universal Extracter to extract the .exe file and it looks like the Inno installer doesn't make any registry changes or copy any files to any funky places. I ran the app from the extacted folder, running regshot before and after and there were no registry changes made by the app.

Hmm...I just noticed that a Tick5.ini file appeared in the %USERPROFILE% directory.

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
$PROFILE

The equivalent of %USERPROFILE% in NSIS is $PROFILE. Therefore:

IfFileExists "$EXEDIR\Data\Tick5.ini" "" Execute
Rename "$EXEDIR\Data\Tick5.ini" "$PROFILE\Tick5.ini"
Execute:
ExecWait "$EXEDIR\App\tick5\tick5.exe"
Rename "$PROFILE\Tick5.ini" "$EXEDIR\Data\Tick5.ini"

----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 7 years 5 months ago
Joined: 2006-11-18 10:26
I dunno what all that code

I dunno what all that code means at this time, but I used the older portable apps template v1.4 and it looks to be pretty solid. The template took care of the data file after I specified it's location.

Ryan: I'd like you to take an "alpha" look at this before I post a beta since this is my first go at a portable app. I used your contact form in your blog so look at the email addy. Thanx in advance. Smile

Edit: I looked at the code above again and I think I have it sorted. That will be useful in future nsis coding (if I get the hang of it).

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Basically:

It basically says:

  • If the file $EXEDIR\Data\Tick5.ini exists, do the following, otherwise skip to the Execute section.
  • Move/Rename (functionally equal) $EXEDIR\Data\Tick5.ini to %PROFILE%\Tick5.ini (so that Tick5 uses it)
  • Start the Execute section
  • Execute the application $EXEDIR\App\tick5\tick5.exe
  • Move/Rename (functionally equal) %PROFILE%\Tick5.ini to $EXEDIR\Data\Tick5.ini (so that the data is stored on our drive)

----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

Log in or register to post comments