User avatar
ohms_law
AGEod Veteran
Posts: 725
Joined: Sun Oct 19, 2008 5:42 pm
Location: Syracuse, NY

CW2 Test Scenario - Cant get this to work

Sun Sep 28, 2014 12:03 pm

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.
Attachments

[The extension csv has been deactivated and can no longer be displayed.]

[The extension csv has been deactivated and can no longer be displayed.]

[The extension csv has been deactivated and can no longer be displayed.]


minipol
General
Posts: 560
Joined: Fri Oct 11, 2013 1:24 pm

Sun Sep 28, 2014 12:19 pm

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 :)

User avatar
tripax
AGEod Veteran
Posts: 777
Joined: Thu Aug 29, 2013 9:58 pm

Sun Sep 28, 2014 12:42 pm

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?

User avatar
ohms_law
AGEod Veteran
Posts: 725
Joined: Sun Oct 19, 2008 5:42 pm
Location: Syracuse, NY

Sun Sep 28, 2014 1:27 pm

tripax wrote:my script is just called "Script.ini", maybe rename yours and see if that fixes it?


...good idea, I'll try it.

User avatar
ohms_law
AGEod Veteran
Posts: 725
Joined: Sun Oct 19, 2008 5:42 pm
Location: Syracuse, NY

Sun Sep 28, 2014 1:33 pm

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...
Attachments
2014-09-28 08_31_58-Greenshot.png
2014-09-28 08_30_46-Greenshot.png

User avatar
ohms_law
AGEod Veteran
Posts: 725
Joined: Sun Oct 19, 2008 5:42 pm
Location: Syracuse, NY

Sun Sep 28, 2014 1:36 pm

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).

User avatar
Bohémond
Posts: 2550
Joined: Wed May 14, 2008 8:47 pm

Sun Sep 28, 2014 2:10 pm

Could you post your .ini and .inc generated files ?

Regards
Marco, perché vai così forte in salita?» «Per abbreviare la mia agonia.

User avatar
ohms_law
AGEod Veteran
Posts: 725
Joined: Sun Oct 19, 2008 5:42 pm
Location: Syracuse, NY

Sun Sep 28, 2014 2:20 pm

Sure!
They're in the .zip file. :)
Attachments
Script.zip
(87.14 KiB) Downloaded 73 times

User avatar
Bohémond
Posts: 2550
Joined: Wed May 14, 2008 8:47 pm

Sun Sep 28, 2014 2:55 pm

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#post329648

Regards
Marco, perché vai così forte in salita?» «Per abbreviare la mia agonia.

User avatar
ohms_law
AGEod Veteran
Posts: 725
Joined: Sun Oct 19, 2008 5:42 pm
Location: Syracuse, NY

Sun Sep 28, 2014 3:22 pm

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.

User avatar
Bohémond
Posts: 2550
Joined: Wed May 14, 2008 8:47 pm

Sun Sep 28, 2014 3:34 pm

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
Marco, perché vai così forte in salita?» «Per abbreviare la mia agonia.

User avatar
ohms_law
AGEod Veteran
Posts: 725
Joined: Sun Oct 19, 2008 5:42 pm
Location: Syracuse, NY

Sun Sep 28, 2014 4:15 pm

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.
Attachments
CitiesTestScenario61.zip
(58.36 KiB) Downloaded 72 times
2014-09-28 11_11_16-Greenshot.png

User avatar
Bohémond
Posts: 2550
Joined: Wed May 14, 2008 8:47 pm

Sun Sep 28, 2014 4:31 pm

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
Marco, perché vai così forte in salita?» «Per abbreviare la mia agonia.

User avatar
ohms_law
AGEod Veteran
Posts: 725
Joined: Sun Oct 19, 2008 5:42 pm
Location: Syracuse, NY

Sun Sep 28, 2014 4:40 pm

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. :(
Attachments
2014-09-28 11_40_11-Greenshot.png
Script.zip
(13.37 KiB) Downloaded 77 times
2014-09-28 11_33_41-Greenshot.png

User avatar
Bohémond
Posts: 2550
Joined: Wed May 14, 2008 8:47 pm

Sun Sep 28, 2014 7:31 pm

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
Attachments

[The extension csv has been deactivated and can no longer be displayed.]

Marco, perché vai così forte in salita?» «Per abbreviare la mia agonia.

User avatar
ohms_law
AGEod Veteran
Posts: 725
Joined: Sun Oct 19, 2008 5:42 pm
Location: Syracuse, NY

Sun Sep 28, 2014 11:21 pm

Bah, I forgot to replace them that last time.

User avatar
Pocus
Posts: 25386
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Mon Sep 29, 2014 8:17 am

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.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
ohms_law
AGEod Veteran
Posts: 725
Joined: Sun Oct 19, 2008 5:42 pm
Location: Syracuse, NY

Tue Sep 30, 2014 4:22 pm

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.

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 1 guest