[Map Script] Full of resources

You should try to edit your civilizationIV.ini located in the documents folder to check if you can . And also check the proprieties of the civ4 folder into your documents to check if you're not in read only or something like that ( the last map you play is saved in the .ini , it seems that something prevent the .ini to be changed and perhaps also the cfg file to be created )

Tcho !

EDIT : I've taken a look at the bug reports and see nothing similar with vista . I don't understand !

Hi Sto, yes you're right, My Games folder containing both BtS and Warlord is partially "read only" but it seems not possible to change this property. I suppose this is related to some setting about Document folder in Vista preventing to change its properties even if I'm Admin. I did not notice this before and I'll try to address this situation. But I must admit that the .ini file seems to change sometimes (but always reverts back to Fractal map) and moreover the. cfg file of Smartmap exists! so it seems to be possible to write in that folder. If this is a problem related to Vista someone else should have noticed this before but it's not.
I don't understand too.

Tcho !
 
Hi Sto, yes you're right, My Games folder containing both BtS and Warlord is partially "read only" but it seems not possible to change this property. I suppose this is related to some setting about Document folder in Vista preventing to change its properties even if I'm Admin. I did not notice this before and I'll try to address this situation. But I must admit that the .ini file seems to change sometimes (but always reverts back to Fractal map) and moreover the. cfg file of Smartmap exists! so it seems to be possible to write in that folder. If this is a problem related to Vista someone else should have noticed this before but it's not.
I don't understand too.

Tcho !

Can you try to do that please ? i will take a look at the log file to check if the file is created for civ4 or if it return an error (you can check with vanilla ):

1 _ enable login :

edit your civilizationIV.ini (make a back up to restore the file after , the game slow down a little with this settings )

; Enable message logging
MessageLog = 1

; Enable the logging system
LoggingEnabled = 1

; Overwrite old network and message logs
OverwriteLogs = 1

; Set to 1 for no python exception popups
HidePythonExceptions = 0

2 _ launch a game with one of the scripts .

3 _ post the pythonDbg.log file located in your documents / logs (associated with the version of civ4 you have launched vanilla/warlords/BtS )

The strange thing is that you have the cfg of smartmap and i use the same function . The only thing i think is about system restore that can do this kind of things . But i don't know anything about vista and it seems strange that a system would have deleted a newly created file .

Tcho !
 
Ok I'll try to launch a game with one of your scripts with the modifications you suggested to the Bts .ini file, as soon as I'll be home in the afternoon.

Bal.
 
Here I am.
First of all I had to do those modifications to the Warlord ini file because the BtS one did not contain the involved lines (it seems the lenght of my ini changes every time and now is a little shorter but I can assure I've seen this become even of only 2 lines; I posted also this from BtS just in case it can be useful).
Second, from what I can see no cfg file's been created.
And third I received an error log while beginning the game (the game started regularly) so I post it
(File "Sto_Pangaea_2_996", line 450, in beforeInit

UnboundLocalError: local variable 'Sfile' referenced before assignment
ERR: Python function beforeInit failed, module Sto_Pangaea_2_996)

At your disposal for anything else,
Bal.
 

Attachments

Here I am.
First of all I had to do those modifications to the Warlord ini file because the BtS one did not contain the involved lines (it seems the lenght of my ini changes every time and now is a little shorter but I can assure I've seen this become even of only 2 lines; I posted also this from BtS just in case it can be useful).
Second, from what I can see no cfg file's been created.
And third I received an error log while beginning the game (the game started regularly) so I post it
(File "Sto_Pangaea_2_996", line 450, in beforeInit

UnboundLocalError: local variable 'Sfile' referenced before assignment
ERR: Python function beforeInit failed, module Sto_Pangaea_2_996)

At your disposal for anything else,
Bal.

First , this is strange that you don't have the debug options in BtS ini file ( i have them like in other versions , and i post mine in order to compare with yours ... there is a lot of option missing . and i see nothing that can block the cfg ) . I don't understand what can cause that , you should perhaps ask in the bug reports why you don't have all the setting in the BtS ini file . This is like you can't change anything in the BtS folder ( but you can save your games ? :confused: of course ) .
Another thing that is strange is why do you get the log file for warlords and not the cfg .

The error is normal because of my implementation and don't cause any bug to the map generation .

Here i post a test file to get the exact error that occur with the script ( i've implented the script in order that it can work even if the default option bug ... so i've removed the anti-bug to check where occurs the bug ) . Can you do the same thing ... enable logging , launch a game with the script below and post the pythonErr.log and pythonDbg.log please ? i will be able to tell you if the problem comes from the script i think :crazyeye: .

Tcho !
 
Hy Sto,
I agree with you about to ask in the bug forum, I'll do. It's just an intellectual couriosity because it doesn't prevent me to play but now I'd like to know why Civ can't memorize my game settings.
I made what you asked and now post the results. I hope this can be helpful.
Obviously I can save games and this sholuld remove our doubts about the "read only" problem.

Bal.
 

Attachments

Yes you should ask for that in the bug forum .

First i've checked if i can reproduce the bug ( this first thing i should have done with the latest patch 3.13 :rolleyes: ) , but all is ok for me . The script look at the registry key to check where the document folder is installed and then try to create a file there , but it can't find it and return an error . This is not a good news because if civ4 can't find it also to edit the .ini file , there is perhaps a problem with the registry key .

the script try to reach the folder "C:\\Users\\Bevilacqua\\Documents\\My Games\\Sid Meier's Civilization 4" and can't achieve to find it ... So you should take a look to check if you have this folder with explorer ( mine looks like "C:\\Documents and Settings\\stoofy\\Mes documents\\My Games\\civ4" with xp , i don't know if this has been changed with vista ) . Another possibility is that you have renamed the civ4 folder after the install ? . You should perhaps try to reinstall civ4 and take a look at the technical forum to check what problems occurs with civ4 and vista .

Hope this help


For info , i'm still playing with my build version of vanilla FFH . But , i will change to the BtS version soon . So I will need to do something with the scripts ( an extra motivation even if i'm lack of time ) . I don't know if i will be able to do something easy to use , but i will do something for BtS . ;)

Tcho !
 
Hy Sto, good news for us if you're planning to skip to BtS. :woohoo:

As for the script it didn't find the "Sid Meier's Civilization 4" folder becuase I did not have that folder not having played Vanilla since new reinstall. That's the vanilla doc folder and I had only the "Warlord" and "Beyond the Sword" ones. Now that I have the script correctly created the cfg file. For this reason the Smartmapdefault.cfg file was generically placed in "My Games" folder and not in a specific one.

I think now it's time for me to act the way your signature tells.

Bal.
 
Hy Sto, good news for us if you're planning to skip to BtS. :woohoo:

As for the script it didn't find the "Sid Meier's Civilization 4" folder becuase I did not have that folder not having played Vanilla since new reinstall. That's the vanilla doc folder and I had only the "Warlord" and "Beyond the Sword" ones. Now that I have the script correctly created the cfg file. For this reason the Smartmapdefault.cfg file was generically placed in "My Games" folder and not in a specific one.

I think now it's time for me to act the way your signature tells.

Bal.

happy to hear that . I've forgotten that warlords and Bts was not in "Sid Meier's Civilization 4" . I will put the cfg in the BtS folder if i achieve to do a version for BtS .

For infos , i've perhaps find a way to do a BtS version but that need two tests , that will be important : transfer the data in MP games , not so easy . And check if Civ4 support some change in the buttons during selection ... i plan to make only one button with every options and when you select one , you will have extra buttons to edit this option . But i still don't know if civ4 support that . I will be able to tell you if this is doable in about one week . If not , i will have to look for another solution :sad: .

Tcho !
 
For info , i've just done the tests for multi player games and Bts . I can't transfer data during map generation , the event context is enable only after the map generation . So , that will be difficult for MP games . With the method defined below or with an option screen , the hosting player will have some different settings with other players . I will begin to make some tests to enter the map settings and after i will see what i can do for MP games . In the worst case all non hosting players will have to reconnect after map generation ( or i will create an external file to give at other players before the map generation )
.

Tcho !
 
For info , i'm still playing with my build version of vanilla FFH . But , i will change to the BtS version soon . So I will need to do something with the scripts ( an extra motivation even if i'm lack of time ) . I don't know if i will be able to do something easy to use , but i will do something for BtS . ;)

Great news. Your script is the only reason why I'm still playing civilization, because the default map creation options have been getting too boring and I want to explore the new possibilities of BtS... :)
 
Great news. Your script is the only reason why I'm still playing civilization, because the default map creation options have been getting too boring and I want to explore the new possibilities of BtS... :)

Thank you for the encouragements . Here the advancement status : :)

I've decided to make a screen , because the dynamical menu is too boring to use ( and i'm not sure it will not crash after a hundred of selection ) . I think i need at least two weeks to achieve the screen ( if i don't encounter some big problems , this is the first time i make a screen ) ... then i will need to rewrite all the scripts :dubious: . I will post a version as soon as possible with the principal options , but that will take time . The good news is that with a screen , i will be able to enable random selection of scripts , and i will be able to add later a lots of little options i would have implemented if i was not limited by the number of buttons .

Tcho !
 
I've always used (and like) your script with Civ4 and Warlords, and now that I got BtS, I just come to encourage you for the BtS version!
Bonne chance!
 
I've always used (and like) your script with Civ4 and Warlords, and now that I got BtS, I just come to encourage you for the BtS version!
Bonne chance!

Thank you :) . I've done half of the screen and resolve MP issues and file system ( load save reset options )(i think :p ) . i have the resource and game option part to add to the screen (the map selection and terrain is done ) then i will try to write a first version of the script as quick as possible with the basic options ... I just hope there is no limit to the size of a map script because it becomes very very large .

Tcho !
 
I've always used (and like) your script with Civ4 and Warlords, and now that I got BtS, I just come to encourage you for the BtS version!
Bonne chance!

I have to second this and am waiting patiently...hoping....waiting...hoping.:goodjob:
 
I have to second this and am waiting patiently...hoping....waiting...hoping.:goodjob:

I think i will be able to finish the screen at the end of the week ( doing a screen was not as easy as I thought :hammer2:). Then i will just adapt the old functions of the script for a first shot . I hope i will be able to post a version before the passage of Santa Claus :please:.

Tcho ! :)
 
Great Sto!
I don't know what a "screen" is but I'm really happy to know that you're working on a new version of your script and that it will see the light.
Good work and thank you!

Bal.
 
Great Sto!
I don't know what a "screen" is but I'm really happy to know that you're working on a new version of your script and that it will see the light.
Good work and thank you!

Bal.

I'm currently working on the resources part . So , this is the screen for the curious ... let me know if you find something weird . The first launch of the screen is always a bit long , but just select the script and see what happen ;) . The functions are not implemented ,so if you launch the map , you will just have a fractal map with a lots of rivers :lol: .

Tcho !

Edit : file removed
 
Wow Sto, yesterday I had a look at what you posted and now I can say that's quite a script! The screen solution seems to work and it's very effective in customizing the planet. This is a really good work (and by the way on my pc it doesn't take to much time to launch but I suppose that many options are still to be inserted).

Bal.
 
Back
Top Bottom