Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

CSV Splitter and Events

Tue Jan 08, 2008 6:26 am

Ok, it has been a number of months since I have been able to successfully create a new scenario. Each time I have tried, there have been problems with the new scenario recognizing events and the include file. Each time, I just gave up on it after a number of hours and gone back to my one functioning scenario. And I have developed a marked aversion to using the CSV splitter.

Well I tried again tonight. And again I failed after several hours of screwing with all sort of name changes for the events and gameoptions files.

I am beginning to think the problem lies with the CSV splitter.

I compared a newly created scenario file after using the CSV splitter to an existing working scenario.

Apparantly, the CSV splitter is either not recognizing or ignoring the gameoptions file and the referenced event file.

In the xls file, I am using the following name for the includes file:

"GameOptionsPBEM"

This is exactly the same file name as used in the Includes folder. I have also tried "GameOptions". Neither works now.

Same problem with the events file. I have tried a variety of names hoping the CSV splitter would recognize the name. I have used exactly the same name as the scenario name.

Here is the latest attempt to match scenario name to event name.

Scenario name is "1861 April Campaign PBEM.scn" with an events file name of "1861 April Campaign PBEM". They are exactly the same and I have also tried 1861 April CampaignPBEM.scn and 1861 April Campaign_PBEM.scn with matching event names.

But when I use the CSV splitter, chunks of code are left out provided by both the event and gameoptions file.

I am using the ACW splitter dated April 11, 2007. Is there a later splitter?

Any ideas why the events and gameoptions files are not being recognized by the splitter when it creates a new script from the CSV setup file? Again this has been a problem in a number of attempts over a several month time frame.

I was able to create a successful scenario 3 months ago or so but that is the only one. I have been able to make changes to cities using the splitter but never events. I have just manually adjusted the events files individually. Fortunately, I have never had to adjust the gameoptions file again since my one successful complete creation of a scenario. Unfortunately the gameoptions file now must be integrated with a new scenario creation and I am running into exactly the same problems.

So any ideas, any thoughts? Is it the splitter?

User avatar
Stwa
Colonel
Posts: 395
Joined: Thu Jul 26, 2007 7:01 am

Tue Jan 08, 2008 6:39 am

Jagger,

What happens if you take an existing scenario from the database, and simply rename the scenario, with no other changes, then save the csv and split and see if the script is correct.

Also, I have downloaded both the ACW and BOA splitter exe's but I use the BOA for the BOA stuff.

I know I have made several "what if" sceanrios, and I don't recall having to modify the resultant script by hand. I have also made a 1812 scenario from the original 1813 and a re-do of the 1778 scenario.

Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

Tue Jan 08, 2008 6:56 am

Stwa wrote:Jagger,

What happens if you take an existing scenario from the database, and simply rename the scenario, with no other changes, then save the csv and split and see if the script is correct.


I may try it tomorrow but the events file would require a new name matching the name of the new scenario. That is one of the two problems I am having. The splitter is not recognizing the events file when it creates the scenario file. The directions are not included for gameoptions or the events file. When I try to run the scenario, everything is fine except events are not there and the financial/manpower options are not in the game.

There is a set of directions for creating a scenario but all it states is to give the events file the same name as the scenario file. Which is what I have been doing but it is not working. The cities files work fine with the splitter but when creating the scenario file, it is not including the events or gameoptions changes.

User avatar
Stwa
Colonel
Posts: 395
Joined: Thu Jul 26, 2007 7:01 am

Tue Jan 08, 2008 7:16 am

Ya you are right about the events file. But just to make sure I am not going crazy here, I regenned my 1812 scen, starting from the xls file set, to be sure I did not have to touch anything "by hand".

But now I guess I will play a few turns to see if the events are really happening. You are scaring me.... :niark:

Never mind, I played a few turns and the events are working properly. Be sure that the first line of the event script has <TAB>NULL, unless you are specifying one of the Indians includes.

By the way, be sure to modifiy BOA local strings with the new scen names and stuff.

1. Saved csv for the setup and the events. (remember, these are two different CSV files), one each from the setup and events xls sheet.

2. Used the BoA splitter to make both scripts and put them in the directories. This is two sepearate splitter "events'. You use the "make script" button to make each one. You can rename the setup script (before splitting), but the events script gets named automatically by the splitter.

3. Then launched in Edit mode, and no problem.

User avatar
Primasprit
Posts: 1614
Joined: Mon Jun 19, 2006 7:44 pm
Location: Germany

Tue Jan 08, 2008 12:15 pm

Jagger wrote:[...]
Any ideas why the events and gameoptions files are not being recognized by the splitter when it creates a new script from the CSV setup file? Again this has been a problem in a number of attempts over a several month time frame.

Hi Jagger!

The CSV-Splitter doesn't care about the event file or the Gameoptions.inc when creating a scenario script. The event file will not be included in the scenario anyway, it is checked every turn by the game. So you can change the event file anytime without recompiling the scenario. The include-files are incorporated in the scenario by the game itself when compiling the scenario (= start the game in Edit Mode).

Cheers
Norbert

Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

Tue Jan 08, 2008 4:54 pm

Primasprit wrote:Hi Jagger!

The CSV-Splitter doesn't care about the event file or the Gameoptions.inc when creating a scenario script. The event file will not be included in the scenario anyway, it is checked every turn by the game. So you can change the event file anytime without recompiling the scenario. The include-files are incorporated in the scenario by the game itself when compiling the scenario (= start the game in Edit Mode).

Cheers
Norbert


Yes, you are right. The problem appears when the scenario is created. The scenario creation process is not linking the scenario to the events or the gameoptions file.

Game starts up and plays fine. But there are no events or data provided by the gameoptions file.

Yet the title of the scenario events file is the same as the scenario. And the gameoptions file are referenced within the script.

Is there something quirky about the naming process? If the new scenario is titled "1861 April Campaign PBEMPlay.scn", shouldn't the scenario creation process recognize an events file titled, "1861 April Campaign PBEMPlay". If the referenced gameoptions file within the script is titled, "gameoptionsPBEMPlay", shouldn't the scenario creation process recognize and link to a file in the includes folder, titled, "GameOptionsPBEMPlay"?

User avatar
Primasprit
Posts: 1614
Joined: Mon Jun 19, 2006 7:44 pm
Location: Germany

Tue Jan 08, 2008 5:54 pm

Hi!

Is there something quirky about the naming process? If the new scenario is titled "1861 April Campaign PBEMPlay.scn", shouldn't the scenario creation process recognize an events file titled, "1861 April Campaign PBEMPlay".

No. While the scenario creation process the game don't use the event file. The event file is processed each turn while playing the game. Just make sure it has the correct name and file extension and reside in the events-directory.

If the referenced gameoptions file within the script is titled, "gameoptionsPBEMPlay", shouldn't the scenario creation process recognize and link to a file in the includes folder, titled, "GameOptionsPBEMPlay"?

Yes, it should.
If you like you can send me your xls-files (primasprit@gmx.de), I will process them, test it and tell you how I made it work. :cwboy:

Do you use a Mod-Directory for AACW, so that the game maybe search in the wrong directories?

Cheers
Norbert

Jagger
AGEod Grognard
Posts: 949
Joined: Sat Mar 18, 2006 2:31 pm

Wed Jan 09, 2008 2:29 am

Primasprit wrote:Hi!


No. While the scenario creation process the game don't use the event file. The event file is processed each turn while playing the game. Just make sure it has the correct name and file extension and reside in the events-directory.


Yes, it should.
If you like you can send me your xls-files (primasprit@gmx.de), I will process them, test it and tell you how I made it work. :cwboy:

Do you use a Mod-Directory for AACW, so that the game maybe search in the wrong directories?

Cheers
Norbert


Thanks Norbert! I am going to play with it again tonight. If I can't get it to work properly, I will send the 4 files to you tomorrow. Perhaps you can spot something that I am missing.

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 12 guests