Code review comment for lp:~der-treba/stratagus/stratagus

Revision history for this message
Travis (dinky-dye-aussie) wrote :

Yeah this things isn't working. I got an stderr output for you. I placed the lines you detailed treba in the stratagus.lua file in the preferences sectoion, as follows.

local defaultPreferences = {
 CampaignHuman = 1,
 CampaignHumanX = 1,
 CampaignOrc = 1,
 CampaignOrcX = 1,
 DoubleClickDelayInMs = 300,
 EffectsEnabled = true,
 EffectsVolume = 128,
 EnableKeyboardScrolling = true,
 EnableMouseScrolling = true,
 FogOfWar = true,
 FogOfWarOpacity = 128,
 GameSpeed = 30,
 GameTranslation = "",
 GrabMouse = false,
 GroupKeys = "0123456789`",
 HoldClickDelayInMs = 1000,
 LeaveStopScrolling = true,
 MaxOpenGLTexture = 0,
 MinimapWithTerrain = true,
 MouseScrollSpeed = 1,
 MouseScrollSpeedControl = 15,
 MouseScrollSpeedDefault = 4,
 MusicEnabled = true,
 MusicVolume = 128,
 PlayerName = "Player",
 ServerIP = "localhost",
 ShowCommandKey = true,
 ShowTips = true,
 StratagusTranslation = "",
 TipNumber = 0,
 UseFancyBuildings = true,
 UseOpenGL = false,
 VideoFullScreen = true,
 VideoWidth = GetCurrentResolution(),
        VideoHeight = GetCurrentResolution(),
}

See, right at the bottom ^^^^ I tried running wargus. didn't even start. Here's the stderr readout.

[string "C:/Games/Wargus/scripts/stratagus.lua"]:312: attempt to call global 'GetCurrentResolution' (a nil value)
stack traceback:
 [string "C:/Games/Wargus/scripts/stratagus.lua"]:312: in main chunk

I'll try the "GetAvailableResolutions()" parameter see if that works...

...Nope, no luck with that either.

« Back to merge proposal