User avatar
Franciscus
Posts: 4571
Joined: Fri Apr 20, 2007 8:31 pm
Location: Portugal

Help needed. (Portugal micro-mod)

Wed Dec 12, 2007 5:26 pm

Well, I am trying to make a small "mod" ( :o I pale :o to call it that in a forum with so great real modders) to correct a few mistakes as to Portugal, namely in the 1808 campaign. Specifically, I already managed to change the name of region "Beira" to Beja, "Lagos" to Faro, and the region "Oporto" to Porto. I even managed to change Carrison "Peniche" in Lisbon to "Garrison Lisboa" (changing it both in the Script08 and the respective scen file).
But I really need help in 2 other points:
- How to change the name of the city "Oporto" in the small window just beneath the city symbol in the map ? I changed it to Porto in the files "97Oporto.rgn" ("regions" folder) and "CitiesCampaign08" ("Includes" folder) and still it shows in the map as Oporto
- And specially, how to change the ownership of Zamora back to Spain ? I changed the respective entrances in the file Subfactions08 ("Includes" folder) but nothing happened (ie, zamora is still portuguese, although it is specified now as a SPA region in that file)

Thank you for any help
(probably these are stupid questions for the pros of AACW modding, but please indulge me...)
When it is more or less final, I intend to post here the changed files, of course :cwboy:

User avatar
PhilThib
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Wed Dec 12, 2007 9:45 pm

City names are in the CitiesCampaign08.inc file of the Includes section of the game data folder.
Ownership change is a bit more complex, but you can change it inside the SubFactions08.inc file (same folder as above)

User avatar
Franciscus
Posts: 4571
Joined: Fri Apr 20, 2007 8:31 pm
Location: Portugal

Thu Dec 13, 2007 1:00 am

Thank you, PhilThib.
Unfortunately that does not seem to "do the trick". I already had changed the SubFactions08 file, that now has the line: "AddSubFacRgn = SPA;$Zamora" in the end of the spanish section (and deleted the corresponding line in the POR section), but in the 1808 campaign Zamora still is portuguese.
Also, as to Oporto, I had already changed the CitiesCampaign08.inc file as below:

"SelectRegion = $Oporto
SetControl = 100
Insurgent = 25
CreateStruc
SetType = $City
SetName = Porto
SetLevel = 8
Apply
CreateStruc
SetType = $Port
SetName = Porto
SetLevel = 7
Apply
CityStyle = $csiSouthEurope
CivLevel = $Cleared
Transport = $Major_Road
BlockState = 0",

but still Oporto shows in the city box (see attached)

maybe what I intend to change is hard coded ? :bonk:
Attachments
Oporto.JPG

User avatar
PhilThib
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Thu Dec 13, 2007 9:20 am

It does not work because you have not "regenerated" the scenario... it's something new in NCP, a lot of the data also ends up doubled in the scenario file itself.... so make a check in the 1808 Campaign.scn file for Oporto and fix, this should work :bonk:

User avatar
Franciscus
Posts: 4571
Joined: Fri Apr 20, 2007 8:31 pm
Location: Portugal

Thu Dec 13, 2007 12:05 pm

Thank you again, PhilThib, for taking time to answer my little problems.
This kind of involvement is indeed amazing from the part of you, the game designer :hat:
Indeed, to change the name of the Peniche garrison, I had to dabble in the scn file, although with great fear of doing anything wrong (by the way, is it ok to change it via simply notepad ?).
BUT, as to Oporto, I have no idea what to change in the respective entries (away from my PC in the moment, am not able to transcribe it) and specially as to Zamora (which for me is the most important mod i would like to do), am completely at a loss. If I recall correctly, there is no "zamora" entry in the scn file, and the lines referring to respective UID (110) unfortunately do not make sense to me (ie, I do not know what to change in the scn file to make Zamora spanish)
Could you help a little bit more ? :coeurs:

User avatar
PhilThib
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Thu Dec 13, 2007 2:53 pm

You can use notepad, the scn, inc and ini files are all text files :cwboy:
I do not understand what is wrong for Zamora if you did the proper change in Subfactions file... the only reason I could see would be that it works only when the scenario is re-generated...

So here is the trick (at your own risks)

A - backup the old scenario files + cities, subfactions and events files
B - Modify by end both the Cities and Subfaction files as you wish
C - In the Script folder of the game (provided you have the latest patch installed), rename the Script08.ini file into Script.ini
D - Run the game, as soon as you see the Nobilis logo, hit the F9 key, it will put you in editor mode...
E - Wait until you see the map and units appear in the game screen, then save the game...(you can move to Zamora and see if the change was implemented)... it should work (might take some time depending on your PC)
F - if it does not work, or you just see the main menu, there is something wrong... :p leure:

If case F arises, I'll implement the change in the next patch (will do anyway, especially when you send me your mod)...

Hope this helps :innocent:

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

Thu Dec 13, 2007 4:01 pm

SubFaction Regions are data which are typed in the Subfactions include, and then these data are integrated in the faction data when you create a scenario. It is a bit tricky to change this kind of data directly in the scn, and you will be better to redo the scn...

Oporto can be changed in the scn directly, you should see all city names, change them to your liking, it does not impact anything.
Image


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

User avatar
Franciscus
Posts: 4571
Joined: Fri Apr 20, 2007 8:31 pm
Location: Portugal

Fri Dec 14, 2007 2:04 am

PhilThib wrote:You can use notepad, the scn, inc and ini files are all text files :cwboy:
I do not understand what is wrong for Zamora if you did the proper change in Subfactions file... the only reason I could see would be that it works only when the scenario is re-generated...

So here is the trick (at your own risks)

A - backup the old scenario files + cities, subfactions and events files
B - Modify by end both the Cities and Subfaction files as you wish
C - In the Script folder of the game (provided you have the latest patch installed), rename the Script08.ini file into Script.ini
D - Run the game, as soon as you see the Nobilis logo, hit the F9 key, it will put you in editor mode...
E - Wait until you see the map and units appear in the game screen, then save the game...(you can move to Zamora and see if the change was implemented)... it should work (might take some time depending on your PC)
F - if it does not work, or you just see the main menu, there is something wrong... :p leure:

If case F arises, I'll implement the change in the next patch (will do anyway, especially when you send me your mod)...

Hope this helps :innocent:


YES, it worked !
I will be uploading my "mod" in a couple of days :nuts:

Thank you !

User avatar
PhilThib
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Fri Dec 14, 2007 7:47 am

Happy it did...don't forget to send it to me, I can include it in the next patch (I also have a Polish mod to work out) :cwboy:

User avatar
Franciscus
Posts: 4571
Joined: Fri Apr 20, 2007 8:31 pm
Location: Portugal

Here it is...

Fri Dec 14, 2007 10:14 pm

Attached is my "micromod". Below is a transcript of the readme:

"This is an attempt to correct a few mistakes referring to Portugal, in the 1808 iberian campaign.
These changes are "cosmetic", and restricted to a minimum; I tried to keep a certain consistency between what was changed and the rest of the features and it was not my intention to change in the least any aspect of gameplay.

This was done in NCP version 1.02a. So, you should first apply this patch.

The changes are:

A. Geography
1- Land regions:
- Zamora is now a spanish region (Zamora was allways a spanish town. This change leads to a small artifactual clipping of the northeast of Portugal. An alternative would be to change the name of the region to Bragança, a portuguese town. But I choose not to do it as this region is served in the game by a major road, and in the beginning of the 19th century there certainly was no major road in the northeast of Portugal)
- Villa Real is now Vila Real
- Douro estuary is now Estuário do Douro
- Oporto is now Porto
- Lower Tago is now Tejo
- Tago estuary is now Estuário do Tejo
- Beira is now Beja
- Lagos is now Faro
- Zafra is now Moura (Zafra is indeed a spanish town, to the southeas of Badajoz)
2 - Sea regions
- Costa do Oporto is now Costa do Minho
- Bahia de Setubal is now Baía de Setubal
- Ria Formosa is now Cabo de Santa Maria
- And changed also Cabo Fisterra to Cabo Finisterra, on the nortwest of Spain (being so obvious a mistake)

B. Military
- Garrison Peniche is now Garrison Lisboa
- Cuerpo de Taje is now Cuerpo del Tago (the spanish name for the river Tejo is Tajo, I believe. But I decided to keep Tago, as it is the name that is "hardcoded" on the spanish part of the map).

To apply this mod, simply unzip the files to the respective folders of the NCP folder of your game, over the original ones. As usual, you do this at your own risk, and should backup your original files to be safe. One of the files is the 1808.scn one; if you do not want to change it, know that the only things modified that depend on it (I think) are the region Zamora, now spanish, and the change in the names of Garrison Peniche and Cuerpo de Taje.

I made this mod only to try to correct some "minor" mistakes of NCP, to improve my personal enjoyment of the game. My choices are of course debatable but I believe are reasonable (one choice for instance as to do with accents. For example, Santarem should be spelled Santarém, but as it is also spelt without the accent in the NCP map, I decided to not change it).
Feel free to give suggestions and make your own modifications, which are easy to do.

Finnaly, I urge other interested players to contribute with their national knowledge to correct the map of their respective countries."

@ PhilThib - sorry, but I do not know how to send directly to you my files. How is it done ?
Attachments
Portugal micromod v1.0.zip
(124.73 KiB) Downloaded 301 times

User avatar
PhilThib
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Fri Dec 14, 2007 10:54 pm

I got the files from here, thanks :coeurs:

User avatar
Franciscus
Posts: 4571
Joined: Fri Apr 20, 2007 8:31 pm
Location: Portugal

Sat Dec 22, 2007 2:22 am

I will be posting an updated version of my small Portugal modification but first I would like to understand what is the relation between script and scenario file. When I first regenerated the scen08 file, I renamed script08 to script; everything ok, but no more script08 file. I then tried the mod on my laptop, changed the scen file for the new one, and everything ok (namely, zamora region, garrison Peniche now Lisboa and Cuerpo de taje now Tago), but in the laptop there remained, of course, the original script08 file, in which it still remains garrison Peniche and Cuerpo de Taje. Nevertheless, when I load and play the scenario, the "new" names are there. What is the role of the script file ? It is overridden by the scen ?. Would it not cause problems to keep a script08 file with unit names that do not exist on the map ? :tournepas

Thanks for your time

User avatar
PhilThib
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Sat Dec 22, 2007 9:08 am

Yes, the script file only purpose is to "create" the scenario...once. The engine knows only the 'script.ini' file...so in order not to lose the previously exported excel files into script files, I rename them for finding them out and keeping them handy...just in case... in other words, the script files have NO use in the game, they are here only for and when the scens are created... :indien:

User avatar
Franciscus
Posts: 4571
Joined: Fri Apr 20, 2007 8:31 pm
Location: Portugal

Sat Dec 22, 2007 4:05 pm

OK, thanks. :cwboy:

Return to “NCP Mods”

Who is online

Users browsing this forum: No registered users and 5 guests