Page 1 of 1

Custom Game Info bug

PostPosted: Sun Nov 04, 2018 5:37 pm
by Swaffy
I'm having a bug with my mod where clicking on my mod in the Custom Game (mod) menu the URL and Description text does not show. It only shows when I start the game up into the mod, but once I click on other mods then back onto mine the text does not show up.

Code: Select all
game.CustomGameName "Swaffy's Mod"
game.addModPath "Mods/Swaffy's Mod/"
game.addModPath Mods/BF1942/

game.setCustomGameVersion 0.38
game.setCustomGameUrl "http://bfmods.com/viewtopic.php?f=31&t=693"

game.setCustomGameInfo "test game info"


I tried both of these for quotations:
game.addModPath "Mods/Swaffy's Mod/"
game.addModPath Mods/Swaffy's Mod/

any help would be much appreciated.

Re: Custom Game Info bug

PostPosted: Sun Nov 04, 2018 6:01 pm
by Diamondback
Swaffy wrote:I'm having a bug with my mod where clicking on my mod in the Custom Game (mod) menu the URL and Description text does not show. It only shows when I start the game up into the mod, but once I click on other mods then back onto mine the text does not show up.

Code: Select all
game.CustomGameName "Swaffy's Mod"
game.addModPath "Mods/Swaffy's Mod/"
game.addModPath Mods/BF1942/

game.setCustomGameVersion 0.38
game.setCustomGameUrl "http://bfmods.com/viewtopic.php?f=31&t=693"

game.setCustomGameInfo "test game info"


I tried both of these for quotations:
game.addModPath "Mods/Swaffy's Mod/"
game.addModPath Mods/Swaffy's Mod/

any help would be much appreciated.


I would remove the space in the mod name and path, to have something that looks like this instead: swaffys_mod. Remove the quotation marks too and see what happens.

Re: Custom Game Info bug

PostPosted: Tue Nov 06, 2018 4:16 pm
by Swaffy
Classical Modder wrote:I would remove the space in the mod name and path, to have something that looks like this instead: swaffys_mod. Remove the quotation marks too and see what happens.

Yep that was the issue. Kind of stupid how it doesn't allow spaces, but ok.

"Swaffy's Mod" doesn't work
"Swaffys Mod" doesn't work
"Swaffy'sMod" doesn't work
"Swaffy\'sMod" doesn't work (escape character)
SwaffysMod does work

- Quotation marks are ignored and do nothing
- Single quotes and spaces both break it, but the mod will still load

Instead I used the LexIconAll to change the name after loading the mod. I am assuming that the exe's use of the name was not built properly to allow for quotation use, which I find weird because this used to work in my mod but some day last year it decided to break.

(edit) damn now I have to fix every single map because of game.setMapId

Re: Custom Game Info bug

PostPosted: Tue Nov 06, 2018 11:21 pm
by Jim2102
I think this is a glitch in the game itself. From experience, in custom games, if you switch between the expansion packs and different mods, the text gets all messed up