Page 1 of 1
CW2 Test Scenario - Cant get this to work
Posted: Sun Sep 28, 2014 12:03 pm
by ohms_law
Help!
OK, so I have the CW2 database:
http://www.ageod-forum.com/showthread.php?35005-CW2-Excel-Database
I opened that up, and added an "Indian" faction to the April '61 scenario, and changed the scenario name throughout to be "1861 Test Scenario". The idea here is to "play" the April '61 scenario as an observer, so I figured that being a neutral "indian" would be the easiest way to do that. I made Tulsa, IT 100% controlled by the Indian faction as well. It's not a completely hands off method, but it's quick and unobtrusive.
So, then I saved each tab as a CSV file, and edited those files with Notepad++ in order to change the commas into semicolons (friggin Microsoft... they knew that would be a problem, since they talk about it in their Help files, and yet they didn't actually
do anything about it!).
I successfully used the CSVSplitter to create "ScriptTest61.ini", "1861 Test Scenario.sct", and "CitiesTestScenario61.inc", and then moved each to it's respective \Scripts, \Events, and \Include directories.
I started CW2, and pressed F9 when "loading textures" appeared, and did see it say "Edit mode ON" in the upper right.
After that, it just goes to the load screen as normal. It doesn't automatically load the map, and there are no new scenarios under the New button. I definitely have the System -> Error logging option on, and did when I ran the program.
So... I don't know what's wrong, here. I'll attach the 3 csv files if anyone else wants to take a look. I'm at a loss.
Posted: Sun Sep 28, 2014 12:19 pm
by minipol
I haven't yet modded anything (I'm parsing the battle log and the hst file), but I'll try and see if I can help you.
It would be interesting to know how to add an Indian faction

Posted: Sun Sep 28, 2014 12:42 pm
by tripax
I had something like that happen to me - I can't remember what I did to solve it, but I know that my script is just called "Script.ini", maybe rename yours and see if that fixes it?
Posted: Sun Sep 28, 2014 1:27 pm
by ohms_law
tripax wrote:my script is just called "Script.ini", maybe rename yours and see if that fixes it?
...good idea, I'll try it.
Posted: Sun Sep 28, 2014 1:33 pm
by ohms_law
Well, that certainly helped! Now I have a different problem...
[ATTACH]31570[/ATTACH]
and
[ATTACH]31571[/ATTACH]
and a few other very similar dialog boxes... humm...
Posted: Sun Sep 28, 2014 1:36 pm
by ohms_law
Code: Select all
8:34:00 AM (Reporting) Application.Run Starting app... 487812 kb
8:34:00 AM [Critical ] TScriptEngine.Parse Exception caught: Indice de liste hors limites (-1) while parsing line 0 :
8:34:00 AM [Critical ] TGameSim.CalcUserInterfaceLookups Exception caught: Violation d'accès à l'adresse 005C3B25 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM (Reporting) Game Engine version: CW2 1.04
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Switch&Jump Violation d'accès à l'adresse 00568999 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9EC
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:34:00 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:38:22 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:38:22 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:38:22 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
8:38:22 AM [Critical ] TGameSim.ExportData Exception caught, ExportStep: Structures Violation d'accès à l'adresse 00626192 dans le module 'CW2.exe'. Lecture de l'adresse 0002F9E8
...and, I finally gave up (the addresses given are all the same, so it's caught in some sort of loop).
Posted: Sun Sep 28, 2014 2:10 pm
by Bohémond
Could you post your .ini and .inc generated files ?
Regards
Posted: Sun Sep 28, 2014 2:20 pm
by ohms_law
Sure!
They're in the .zip file.

Posted: Sun Sep 28, 2014 2:55 pm
by Bohémond
Your script.ini has not be well generated.
Do you have the scenario generation document ?
If not, please have a look here ;
http://www.ageod-forum.com/showthread.php?37088-Modding-Help-for-someone-new-to-AGEOD-Modding&p=329648#post329648Regards
Posted: Sun Sep 28, 2014 3:22 pm
by ohms_law
I read through ScenCreation01.pdf already, at least. that got me this tidbit of important information:
Start the game and make sure the option Error logging is turned on. Quit the game.
...which is certainly important!

The BOA doc looks to be exactly what's on the AGEwiki.
So, I'm not sure what's "not well generated". There's obviously a problem with the script.ini somewhere, but I don't know where.
Posted: Sun Sep 28, 2014 3:34 pm
by Bohémond
As per I can see, when you export your scenario csv, you should have select the cities tab and not the setup tab in CSV Splitter.
Maybe you could export it again.
Regards
Posted: Sun Sep 28, 2014 4:15 pm
by ohms_law
There is no cities tab in CSVSplitter any longer (version 0.83, which Pocus posted a few weeks ago). There is a Regions.csv tab though:
[ATTACH]31575[/ATTACH]
Which I'm pretty sure is the same thing.
I just loaded up my CitiesTest.csv in that tab, and generated an .inc file:
[ATTACH]31576[/ATTACH]
...It looks ok to me.
Regardless, Merci beaucoup pour votre aide.
Posted: Sun Sep 28, 2014 4:31 pm
by Bohémond
I think we misunderstood each other ;
-Your cities.inc was ok.
-Your script.ini was not generated with the Setup-Events tab but with the regions tab, IMHO but I can be wrong
Regards
Posted: Sun Sep 28, 2014 4:40 pm
by ohms_law
No problem. Here, I'll remake it:
[ATTACH]31577[/ATTACH]
Which creates:
[ATTACH]31578[/ATTACH]
I moved that to C:\Games\Civil War II\CW2\Scripts and...
...Same problem.

Posted: Sun Sep 28, 2014 7:31 pm
by Bohémond
The issue seems to be the conversion from .xls to .csv.
Your ScenTest.csv shoud be look like this ;
The attachment CW2_Setup1861_April_Campaign_v5lTest.csv is no longer available
There no comma, etc...
Regards
Posted: Sun Sep 28, 2014 11:21 pm
by ohms_law
Bah, I forgot to replace them that last time.
Posted: Mon Sep 29, 2014 8:17 am
by Pocus
I'm pretty sure you can have a correct export and don't have to use Notepad++. We have many people with English Windows able to do that, for example Altaris (EAW project member) is from the US I think.
Posted: Tue Sep 30, 2014 4:22 pm
by ohms_law
Microsoft Excel 2010 can't export to CSV with anything other than a comma as a separator. They (Microsoft) took out the ability to customize it. The Excel help file provides instructions on how to change the Windows Regional and Language settings in order to change the List separator setting (in Windows, globally!). Otherwise, you can use the Text import wizard to reimport the data into excel and change the delimiter with the wizard... or, you can just open the file with Notepad++ and search and replace ',' with ';'.
I got this to work, by the way (thanks a bunch for your help, and your patience, Bohémond!). CW2 read the script and processed it... but, I had to go to work, and I haven't had time to look at the results since. Real life sucks sometimes. I'll get back to this real soon, though. I really appreciate the help from everyone, as well.