Menu

#45 Crash on save (80 seasons)

2.3.2
closed
Gunnar
Crash (9)
5
2020-04-20
2010-06-20
Anonymous
No

$ bygfoot
rm: cannot remove /home/jonas/.bygfoot/saves/autosave_Jonas_Faroe': No such file or directory rm: cannot removeIslands_Mi\303\260v\303\241gur_S80_W05_02.zip': No such file or directory

(bygfoot:1816): WARNING : file_my_system: system returned -1 when executing 'rm /home/jonas/.bygfoot/saves/autosave_Jonas_Faroe Islands_Miðvágur_S80_W05_02.zip'.

zip error: Nothing to do! (autosave_Jonas_Faroe.zip)
Segmentation fault (core dumped)

Maybe the funny characters is the problem? Seems like a bad idea to use special characters in file names..

Discussion

  • Nobody/Anonymous

    Just a few more notes. I did a little re-search. The game crashes on the debug_print_message() call in file_my_system()

    The buffer named cmd contains
    cmd = 'P¿ ÞE'

    just garbage in other words.. I commented the debug print statement and now the game runs. It does not clean up the files successfully though.

     
  • Nobody/Anonymous

    Aand..

    Running version 2.3.2...

     
  • Gunnar

    Gunnar - 2010-10-29

    What type of game where you playing? Euro cup?

     
  • Gunnar

    Gunnar - 2010-10-29

    Oh I see, it's not the special characters, it's the space in Faroe Islands that's causing the problem

     
  • William McElhone

    Hey Gunnar, I'll add my insight into this topic, whether you resolved it or not, the fix should be easy enough I think, although I'll admit to not looking at the specific code on this topic.

    As for the autosave feature, when you look at it, the saved files will take the form of "autosave_(Player's-Name)(Country-Name)(Team-Name)_Season#_Week#_Round#.zip'", so that for the example given above, it appears as "autosave_Jonas_Faroe Islands_Miðvágur_S80_W05_02.zip". I mention this as this error can actually occur anytime that the player's name OR country name has more than one word in it and is separated by a space. But, if you have a team name with more than one word in it and you have a space between each of those words, you're good.

    At this point I should add that the county name is actually taken from the xml file for the country in question, from the definition files. In the country_(Country-Name).xml file, the field of <name> is where the country name is actually taken from, so if anyone has a country name with a space in it, it will give an error message when the autosave feature is enabled. This is something you would hopefully already know about Gunnar, but others may not.</name>

    As for the player's name, it is the username that the player sets up for themselves when they first start a new game. So if someone were to choose a username that had more than one word in it also that was separated by a space, that too would give an error message when the autosave feature is enabled and run.

    So from my observations, I do believe that the people that originally encoded the autosave feature did account for the team name possibly having more than one word in it, as that is most likely to happen, but didn't account for the player's name OR the country name having more than one word in it. Although there are over 50 countries in Europe, not many have more than one word in their name, right? So if you were to check the coding of this, the solution may already be there, it would just have to be extended from the team name to also encompass the player's name AND the county's name, I'm guessing.

    So if you actually get to read this, good luck in resolving this issue, if you haven't already done so.

     

Log in to post a comment.