Page 1 of 1
CityBuilder script
Posted: 19 Oct 2015 10:51
by freshrebel
Hello
i want to start a game with the CityBuilder script. but the script always crashes. I attatched the error in a screen cap
Re: CityBuilder script
Posted: 19 Oct 2015 11:36
by ST2
hello
it's similar to
this, that is on the gamescript topic

Re: CityBuilder script
Posted: 19 Oct 2015 13:19
by planetmaker
Moved to the AI and game script sub-forum as it's an issue with that particular script. In the topic dedicated to this script it seems to be already reported and some solution or workaround proposed:
http://www.tt-forums.net/viewtopic.php? ... 6#p1152936 albeit there seems to be no easy-to-download update yet available. I suggest to keep the discussion there (to make it easier for the script author).
Re: CityBuilder script
Posted: 21 Oct 2015 11:52
by freshrebel
thanks for the awnsers, i'll look at it when i'm home.
sorry for the misplace of the topic but i'm new here

Re: CityBuilder script
Posted: 21 Oct 2015 16:21
by freshrebel
is it normal the citybuilder-113 is a rar file?
Re: CityBuilder script
Posted: 21 Oct 2015 16:27
by Alberth
More likely, rar attaches its icon to every archive file it recognizes.
Did you really check the file extension?
To use, it should be a .tar file, or you can unpack it to a directory with files.
(and yes, afaik rar also claims to know tar)
Re: CityBuilder script
Posted: 21 Oct 2015 17:34
by freshrebel
it was a tar file. my bad

but how do i change the file i have to change? do i extract it first? because if i change it and save it it jumps back to what it was before.
Re: CityBuilder script
Posted: 21 Oct 2015 18:57
by Alberth
That question didn't make much sense, but after some decoding, I guess you're talking about changing the script with suggested change.
Indeed, the usual approach is to unpack the tar to a directory with files (although technically, it's hardly unpacking, as tar doesn't compress anything), and change the file you want.
You can put everything back into a tar file if you like, but you can also just move the directory into the game script directory of your openttd (and make any tar with the same version unavailable for openttd, to be on the safe side), then start openttd, and it should pick up the modified version.
Re: CityBuilder script
Posted: 21 Oct 2015 19:50
by freshrebel
with my question i was refering to the solutions given earlier in this topic.
but thanks for the help, i'll try it
Re: CityBuilder script
Posted: 21 Oct 2015 22:00
by freshrebel
ok thank you guys your help solved my problem
so for other people having this problem:
- extract the "CityBuilder-113.tar" file
- open the file comp.nut with notepad(or something alike)
- search for "MoveHQ(hq, towns);"
- and change it in MoveHQ(hq);
- save the file
- get everything into a tar file again
I have no further questions