Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2011, 12:08 PM
stillborn stillborn is offline
Approved Member
 
Join Date: Sep 2010
Posts: 21
Default

Quote:
Originally Posted by Ataros View Post
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 View Post
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.
Reply With Quote
  #2  
Old 07-29-2011, 12:29 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

The problem is we have to close the pop-up window "Can not read/write file" manually when restarting the mission. Then it works fine.

BigRepa told he had to change paths from "Program Files (x86)" to "Program Files" because server runs x32 version. Could this be a reason? Can it be avoided (no mention of (x86) in path names?
Reply With Quote
  #3  
Old 07-29-2011, 03:22 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Thanks a lot for all the answers.

This is how a path to cache looks
C:\Documents and Settings\Администратор\Мои документы\1C SoftClub\il-2 sturmovik cliffs of dover\cache

This is Russian WinServer 2003 x32, contains Cyrillic letters. Can this cause the problem?
Reply With Quote
  #4  
Old 07-29-2011, 04:18 PM
stillborn stillborn is offline
Approved Member
 
Join Date: Sep 2010
Posts: 21
Default

Quote:
Originally Posted by Ataros View Post
Thanks a lot for all the answers.

This is how a path to cache looks
C:\Documents and Settings\Администратор\Мои документы\1C SoftClub\il-2 sturmovik cliffs of dover\cache

This is Russian WinServer 2003 x32, contains Cyrillic letters. Can this cause the problem?
attachment has a modified version for you, i hope this resolves the error.

i dont think its caused by Cyrillic letters, the cs files containing nonstandart chars are saved as utf8 by default unless you force them to save as ascii, i think its the Path.GetDirectoryName(System.Reflection.Assembly.G etExecutingAssembly().Location) command that returns something different in win server 2003.

make sure you extracted the modified archive to

"C:\Documents and Settings\Администратор\Мои документы\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Multi\Dogfight\StbVolcanicIslands2\ "

, not the one inside program files so "StbVolcanicIslands2.cs" file location should be like this:

"C:\Documents and Settings\Администратор\Мои документы\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Multi\Dogfight\StbVolcanicIslands2\ StbVolcanicIslands2.cs"
Attached Images
File Type: jpg ChangedLinesForRepka.jpg (18.2 KB, 6 views)
Attached Files
File Type: zip StbVolcanicIslands2Repka.zip (35.4 KB, 10 views)

Last edited by stillborn; 07-29-2011 at 04:21 PM.
Reply With Quote
  #5  
Old 07-29-2011, 06:32 PM
stillborn stillborn is offline
Approved Member
 
Join Date: Sep 2010
Posts: 21
Default

here's a file explaining which types of damages goes where in stats htm
Attached Files
File Type: zip StatsCompactDetails.zip (245.8 KB, 30 views)
Reply With Quote
  #6  
Old 08-09-2011, 04:07 PM
stillborn stillborn is offline
Approved Member
 
Join Date: Sep 2010
Posts: 21
Default

Here is version 1.1
Changes:
  • added dynamic frontmarker creation from ground and naval unit positions
  • added "last place online" and "tasks per place enter" columns to stats
  • fixed stats html client side sortability
  • stats html is automatically sorted by tasks per place enter when opened
  • stats html is now standalone, does not require any css or js
  • added a servername option for stats html
  • increased upload interval to 133 secs and made some minor adjustments to other timings
  • ship hulls are now removed
  • ai bomber difficulties are all ace (0.99)
  • reduced the number of ai bomber to 3 for each side
  • mission runs at least 2x faster due to reduced ai bombers and minor tweaks in stat thread
  • fixed OnPlaceEnter and OnPlaceLeave script bugs
  • "removal of unused planes and ai" script is more stable
  • mission is now in dll form for easier integration with other scripts

StbViMission.dll must be in the folder where Launcher.exe is.
You can put the "StbVi.cs" and "StbVi.mis" files anywhere you like and run the mission from there.
If you want to edit the mission further, visual studio solution for the dll is in the second zip.

Please turn on "Cannot Swith Planes" difficulty option when running this mission because Blues can get into He111s by pressing AltF1 but reds cant use Wellingtons.

Btw it seems like game only lets me to load dlls from the folder where Launcher.exe is.
I used "//$reference StbViMission.dll" for import at the top of the script.
"Assembly.LoadFrom" and similar methods work fine but they are useless because i use this dll to define the class type of mission at the top.
If you find a way to include folders with "//$reference" or another way to reference a dll from another folder (without editing an xml or ini, just from inside the mission script) please suggest.
Attached Files
File Type: zip StbVolcanicIslands1.1.zip (65.0 KB, 28 views)
File Type: zip Source_StbViMission_dll.zip (54.6 KB, 29 views)
Reply With Quote
  #7  
Old 08-09-2011, 04:31 PM
41Sqn_Banks 41Sqn_Banks is offline
Approved Member
 
Join Date: Oct 2007
Posts: 644
Default

You can give the path the the dll relative to the path with the launcher.exe, for example:
Code:
//$reference parts/il2dce/IL2DCE.Mission.dll
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:05 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.