Log in

View Full Version : I'm screwed. I can no longer activate the background script!



The Errant
04-24-2007, 10:14
I've been messing with the background script in order to balance out the settlement bonuses for the AI.
Last evening something went terribly wrong. Now I can't activate the background script at all anymore. Regardless of what faction I choose. The "Show me how" button on the advisor is greyed out. The script is in the right place so that's not the issue.
When I exit the game I get the following notification: Error in EBBS_script line 165989, column 1. Don't recognise this token: end_script

I've tried replacing the background script with three different backups. The result is the same with the difference in the previous message being in the given linenumber.

Can anyone help me, please?

mucky305
04-24-2007, 14:58
Some questions. First, are you sure your backup aren't corrupted? Second, I'm not really sure how to do it myself, but it looks to me as if the comp is giving you an error reference in that it's telling you where the error is (just couldn't tell you how to read it). If it is a reference, then maybe you can trace it. If you have a zipped downloaded copy of EB on your comp, I would try to check for the clean EBBS script file. Rename it (something like EBBSscript original) and then copy it into the script folder in EB. Delete the modded file and change the filename of the clean copy to the EBBS_script standard, it may very well be an overwrite issue (like you changed something that can't be changed back except manually within the file). I've been playing this game for close to two years and have done a moderate amount of modding and still I don't understand most of how the computer reads those script files. Don't get discouraged. Keep trying.

The Errant
04-24-2007, 15:46
The only line that a search of the EBBS file reveals for the parameters end_script is the very last line in the script. Removing it means the script is no longer functioning at all. Means you go back to the two per turn years and all the other limitations of vanilla RTW.

I can try to delete the entire script folder in EB. Recreate it and add the script file but I'm not holding my hopes up.

If that dosen't work I'll have to reinstall the entire game. Which is something I really don't want to do since I'll have to make backups of so many different modified files I've tried to improve the game with.

bovi
04-24-2007, 18:00
You should probably take a copy of your whole installation for the backup you mention, then install again and compare your modified files to the original ones to see where you screwed up. UltraCompare is excellent for this task if you have it, including recursing throughout the subfolders, however it is not free. WinMerge is free and I've heard it fills the same purpose, but I don't know how good it is.

The Errant
04-24-2007, 18:17
You should probably take a copy of your whole installation for the backup you mention, then install again and compare your modified files to the original ones to see where you screwed up. UltraCompare is excellent for this task if you have it, including recursing throughout the subfolders, however it is not free. WinMerge is free and I've heard it fills the same purpose, but I don't know how good it is.

Thanks. I figured out the problem. And the solution too. The last conditional I added to the damn script makes it incompatible. Looks like I hit a limit in the RTW scripting language.

I'll have to remember the name of that program though. From the looks of things I'll still keep changing the script and I don't want to trough all this trouble if it stops working again.