Pages: [1]
|
|
|
Author
|
Topic: Time limit extending cheat/editor/anything ?? (Read 4140 times)
|
Ego1607
Zebranky food
Offline
Posts: 4
I love YaBB 1G - SP1!
|
I'm sorry if this has alredy been discussed, but I couldn't find a solution on the last... 15 pages. I'd like to enjoy exploring the game without the constant time preasure, so I'm looking for a way to extend the time limit for another... let's say 100 yeares . So, if annyone knows where to download an editor or knows a way to edit the game manualy, PLEASE enlighten me. PS. Pardon my English
|
|
|
Logged
|
|
|
|
|
Ego1607
Zebranky food
Offline
Posts: 4
I love YaBB 1G - SP1!
|
Thanx, I know that trick, I was hoping for something more... I'm hoping those UGM gurus are reading this...
|
|
|
Logged
|
|
|
|
meep-eep
Forum Admin
Enlightened
Offline
Posts: 2847
|
Editing the saved game by hand (with a hex editor) is not really an option as the relevant data in the saved game is compressed. It should be possible to write a savegame editor, which would have to replicate the way the savegame is loaded from the game.
It is however not very hard to edit the source to give you more time. But that means you have to recompile the source yourself. I don't know whether you have the skills and tools to do that. If not, maybe someone else could do it for you. This is what has to be done: - edit src/sc2code/globdata.h, and edit the line saying '#define YEARS_TO_KOHRAH_VICTORY 4', by replacing the 4 by however many years you want (excluding the extra year you get for the Utwig mission). Races in the game will think you've got this many years now, but the Kohr-Ah victory has already been scheduled, and the date is saved in your saved game, so this will only help for new games. If you want to change this date, you'll need to make the following modification (in addition to this one): - edit src/sc2code/load.c, and insert before the line saying "UnlockEvent (hEvent);" the following lines: if (EventPtr->func_index == KOHR_AH_VICTORIOUS_EVENT) { UnlockEvent (hEvent); FreeEvent (hEvent); continue; } Then leave the lines after that alone that say UnlockEvent (hEvent); PutEvent (hEvent); } } and then add: AddEvent (ABSOLUTE_EVENT, 2, 17, START_YEAR + YEARS_TO_KOHRAH_VICTORY, KOHR_AH_VICTORIOUS_EVENT); These first section of code added makes sure the event from the savegame is not loaded, and the second section adds the event to be triggered when you want it. (I couldn't just modify the event from the saved game, as the queue should always be sorted on date).
If you're already in the extension time this won't work; the event for the destruction of the first race is already scheduled. Something similar can be done for that, but let's see if this is enough for your purposes first.
|
|
« Last Edit: June 12, 2004, 07:51:04 am by meep-eep »
|
Logged
|
“When Juffo-Wup is complete when at last there is no Void, no Non when the Creators return then we can finally rest.”
|
|
|
Ego1607
Zebranky food
Offline
Posts: 4
I love YaBB 1G - SP1!
|
Thank you, meep-eep, but you were right, I have no clue how should i recompile the sorce . Anny sugestions on how could I get my hands on a recompiled version?
|
|
|
Logged
|
|
|
|
|
Pages: [1]
|
|
|
|
|