Custom Game Info bug

Ask questions, discuss ideas, get answers

Custom Game Info bug

Postby Swaffy » Sun Nov 04, 2018 5:37 pm

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™
Image
User avatar
Swaffy
 
Posts: 1710
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Custom Game Info bug

Postby Classical Modder » Sun Nov 04, 2018 6:01 pm

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.
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 436
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

Re: Custom Game Info bug

Postby Swaffy » Tue Nov 06, 2018 4:16 pm

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™
Image
User avatar
Swaffy
 
Posts: 1710
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Custom Game Info bug

Postby Jim2102 » Tue Nov 06, 2018 11:21 pm

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
Jim2102
 
Posts: 10
Joined: Sat May 12, 2018 1:53 pm


Return to 1942 Modding Discussion

Who is online

Users browsing this forum: Google [Bot] and 27 guests

cron