Custom Game Info bug

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Custom Game Info bug

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Diamondback
Posts: 589
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: Custom Game Info bug

Post 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.
See my Strasbourg map project here.
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Custom Game Info bug

Post 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
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Jim2102
Posts: 13
Joined: Sat May 12, 2018 1:53 pm

Re: Custom Game Info bug

Post 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
Post Reply