New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last color bug #2623

Closed
PhilipJFryFAF opened this Issue Oct 20, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@PhilipJFryFAF
Collaborator

PhilipJFryFAF commented Oct 20, 2018

if the last color in the game.prefs is set to color that doesn't exist then the game will get stuck when trying to enter/host a lobby
Example:

warning: Error running Hosting script in CScriptObject at 110f5000: ...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(92): You are attempting to set a LazyVar's evaluation function to nil, don't do that!
         stack traceback:
         	[C]: in function `error'
         	...orged alliance\gamedata\mohodata.scd\lua\lazyvar.lua(92): in function `Set'
         	...d alliance\gamedata\mohodata.scd\lua\maui\bitmap.lua(64): in function `SetSolidColor'
         	...rever\gamedata\lua.nx2\lua\ui\controls\acubutton.lua(129): in function `SetColor'
         	...r\gamedata\lua.nx2\lua\ui\controls\resmappreview.lua(242): in function `UpdatePlayer'
         	...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(3856): in function `RefreshMapPosition'
         	...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(3910): in function `ShowMapPositions'
         	...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(2008): in function <...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua:1994>
         	...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(4713): in function <...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua:4590>
         	[C]: in function `HostGame'
         	...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua(650): in function <...ta\faforever\gamedata\lua.nx2\lua\ui\lobby\lobby.lua:646>```
this bug occured in patch 3699 since we removed one color option so everyone who is unlucky enough to have the last color in the list of the 3698 patch will have issues hosting/joining and needs to edit his game.prefs to fix this issue

would be nice if the game would just use the first possible color in such a scenario

speed2CZ added a commit to speed2CZ/fa that referenced this issue Oct 20, 2018

speed2CZ added a commit to speed2CZ/fa that referenced this issue Oct 20, 2018

PhilipJFryFAF added a commit that referenced this issue Oct 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment