Quote:
Originally Posted by Ataros
Need urgent help, please!
When trying to run the mission on Repka #2 server we get a pop-up window "Can`t open / create file". This prevents server from automatically restarting the mission twice a day as we do with other missions. What could be causing it and can it be fixed?
btw. Server has a Russian version of the game and OS (Win Server 2003 x32). Thus system uses comma as decimal separator, not a decimal point. This caused some issues in other missions. BigRepa changed paths in your mission to match x32 version.
StbVolcanicIslands2_errorlog.txt is not created either.
Edit.
Attached is the mission with paths edited for x32 version. Please have a look if it does not miss anything.
|
ive checked the file the only different lines are upload related ones at the top, make sure the "user account credentials application(game) uses" have read/write/create etc permissions for the folder StbVolcanicIslands2 and the ftp username and password has the same permissions for the upload path. Some windows user accounts may have read write change permission but not create, this is more typical in server environments, make sure the game is running as administrator.
the path creation method i used has some hardcoded dumb approach, like this:
1. get the application path =>
(which is "C:\Users\user01\Documents\1C SoftClub\il-2 sturmovik cliffs of dover\cache" in my computer)
2. crop last 5 chars =>
("C:\Users\user01\Documents\1C SoftClub\il-2 sturmovik cliffs of dover\")
3. append "missions\Multi\Dogfight\StbVolcanicIslands2\" to it => ("C:\Users\user01\Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Multi\Dogfight\StbVolcanicIslands2\ ")
4. create all the absolute full file names from this => ("C:\Users\user01\Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Multi\Dogfight\StbVolcanicIslands2\ StbVolcanicIslands2_playerstats_low.htm" etc etc)
maybe cache folder is named something else in russian version or you have uploaded it to "C:\Program Files (x86)\Steam\steamapps\common\il-2 sturmovik cliffs of dover\missions\Multi\Dogfight\StbVolcanicIslands2" instead, sorry i forgot to mention this, but you have a user stat in the file with name "satar" which means all this progress completed correctly and it wrote to the file successfully and you dont have to care about the explanation in the upper paragraph.
Currently my system has a different default CultureInfo too (uses comma as decimal separator). I've created an invariant culture info(en-US) variable and used it in all required string conversions in all threads. So you dont have to worry about different system settings, this is very very low probability but there may be an extra change required because of the Russian game version, cant tell it without testing.
just make sure you use
ToString(stb_nf) or
"ToString(stbSr_nf) in stat recorder class" instead of ToString() if you want to add anything in the future.
Quote:
Originally Posted by SNAFU
But I have no "StbVolcanicIslands2_errorlog.txt" on the disk, sorry. Do I have to create that file, so it can write into?
|
StbVolcanicIslands2_errorlog.txt is not created unless there is an error, its totally fine if you dont see it.