RUNNING WITH RIFLES
http://www.runningwithrifles.com/phpBB3/

Problems with the campaign
http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=5&t=1356
Page 1 of 2

Author:  Tummerhore [ Sat Aug 31, 2013 12:45 pm ]
Post subject:  Problems with the campaign

Alright, with version 0.92/0.92.1 I get some strange issues ragarding only the campaign. This does not apply to the normal quick matches.

If I continue my old save game (Campaign, currently on the map Insular Complex) the game freezes after playing about 5 minutes or less. There's no error report. The game just stops working and I can only exit it with the task manager.
To better categorize this problem I wanted to lauch a new camapaign (maybe it only happens at Insular Complex in the campaign). But after pressing the start button nothing happens. The map does not change from the lobby although the menu has changed to the layout, which is also shown during the campaign. Really weird...
Until version 0.91 (including) everything went fine. But now, I really have no idea where the problem could be.

Author:  pasik [ Sat Aug 31, 2013 1:00 pm ]
Post subject:  Re: Problems with the campaign

Can you post rwr_game.log? In C:\Users\your_username\AppData\Roaming\Running with rifles.

Author:  Tummerhore [ Sat Aug 31, 2013 5:56 pm ]
Post subject:  Re: Problems with the campaign

Ok, I attached the whole game log to this reply. (This is the log when I try to start a new campaign.) I think the problem is in the middle where it says very often: "Can't assign material _missing_material_ ...".

Note: I had to zip the log before i could upload it. Why are txt, log, etc. extensions not allowed?!

Attachments:
rwr_game.zip [16.35 KiB]
Downloaded 722 times

Author:  pasik [ Sat Aug 31, 2013 6:53 pm ]
Post subject:  Re: Problems with the campaign

Tummerhore wrote:
Note: I had to zip the log before i could upload it. Why are txt, log, etc. extensions not allowed?!
No idea, default forum behavior?

Author:  pasik [ Sat Aug 31, 2013 7:08 pm ]
Post subject:  Re: Problems with the campaign

Something fishy is going on for sure, nothing to do with missing materials (that's a trace not to worry about, none of our meshes have material info with them, they are bound externally).

Here's some stuff to try:
- start the game with parameters "verbose metagame_debugmode"
- with verbose, rwr_game.log will have plenty more traces, try to start campaign and re-send the log on forum
- with metagame_debugmode, there could be another log from the gamemode script generated at RWR installation folder\media\packages\vanilla\scripts\metagame.log; it's possible it isn't if your user account isn't an admin one, but if you happen to have that file, then awesome, send it to forum as well please

In the game log you had there's this:
18:05:23: : starting metagame
18:05:23: : starting metagame script, tools/php/php-win.exe media/packages/vanilla/scripts/gamemode_invasion.php single_player settings="<settings savegame='battle1' username='Mr. Green' />" anonymous_pipes
18:05:23: : process created ok

This actually sounds about right, but it's odd that the script dies/doesn't start even if it appears to start in perspective of game, as you're not getting the first map change command.

Here's what I'm getting with verbose metagame_debugmode parameters:
22:03:20: : starting metagame
22:03:20: : starting metagame script, tools/php/php.exe media/packages/vanilla/scripts/gamemode_invasion.php single_player settings="<settings savegame='battle15' username='pasik' />" debug_output anonymous_pipes
22:03:20: Texture: crosshair_poor.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
22:03:20: : process created ok
22:03:20: : poll: is connected 1
22:03:20: : send: <dummy_event />

22:03:20: : send: is connected 1
22:03:20: : send: success 1 len=20 num bytes=20 error=0
22:03:20: : poll: is connected 1
22:03:21: : poll: is connected 1
22:03:21: : read: success 1 num bytes=4 incoming message length = 5109
22:03:21: : read: success 1 num bytes=5109
22:03:21: : received: <command class='change_map' map='media/packages/vanilla/maps/map2'><map_config>
<faction file="green.xml" />
...

Let me know if you've got problems finding the right place to put those parameters in, I'll try to help.

Author:  Tummerhore [ Sun Sep 01, 2013 10:12 am ]
Post subject:  Re: Problems with the campaign

The wiki did its job just fine with helping me out where to put the parameters in. :)

The game log looks like your's until this:
Quote:
22:03:21: : read: success 1 num bytes=4 incoming message length = 5109
22:03:21: : read: success 1 num bytes=5109
22:03:21: : received: <command class='change_map' map='media/packages/vanilla/maps/map2'><map_config>
<faction file="green.xml" />

The last line is even completely missed out. It seems that the game always repeats the last steps, instead?!

Attachments:
rwr_game_log.zip [33.59 KiB]
Downloaded 763 times
File comment: Ok, even though I've got an admin account, there was no metagame.log But I've found this: RWR Installation folder\media\packages\vanilla\scripts\internal\metagame.php However it's likely something total different :(
metagame.zip [1.56 KiB]
Downloaded 724 times

Author:  pasik [ Sun Sep 01, 2013 11:33 am ]
Post subject:  Re: Problems with the campaign

One thing can be read from what the game's getting from the script: instead of proper data in form of the agreed protocol, a warning about issue in execution of the script comes down the pipe, indeed stating that the log can't be created because of permission denied.

I've obviously overlooked something in the initialization part of the script that sets up logging, causing the comms never get back in sync of getting proper data after the warning.

You could try this as first aid: http://modulaatio.com/runningwithrifles/log.zip. Unzip that in your RWR installation folder\media\packages\vanilla\scripts\internal so that it overwrites log.php. Make a backup of the original file.

Other alternative could be to create metagame.log manually in RWR installation folder\media\packages\vanilla\scripts\, contents don't matter.

Why it isn't able to create metagame.log in there even if admin account is used could be because of UAC, user access control in Windows 7. It's commonly known Windows 7 prohibits applications from writing in Program Files while running by default, so my decision of having metagame.log there is obviously a poor choice (it even says in log.php: // TODO: figure out path to appdata?). Anyway, the log was only supposed to be used for debugging and development for myself mostly, and now it seems it's the one causing major issues for players.

Author:  Tummerhore [ Sun Sep 01, 2013 4:19 pm ]
Post subject:  Re: Problems with the campaign

HOORAY! It's finally working. :D No more game freezes and I can start a new campaign. A really BIG THANKS for your help, pasik!
By the way, I used the first method to solve it.

Author:  ricogs400 [ Thu Dec 05, 2013 9:01 pm ]
Post subject:  Re: Problems with the campaign

Thanks for the fix. Just got the game and couldn't get the campaign to start until I replaced that log file.

Author:  Luck of Duck [ Sun Dec 15, 2013 4:42 pm ]
Post subject:  Re: Problems with the campaign

I have same problem with 0.92 on Linux, but the proposed fixes does not work.

I replaced the log.php by extracting the zipped file. Did not work.
Created metagame.log to the /Games/running_with_rifles/media/packages/vanilla/scripts/ (just an empty file) Did not work.

Attached should be the game log, if all goes well.. (no, better make that .zip)

Attachments:
copy of rwr_game.log.zip [17.26 KiB]
Downloaded 731 times

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/