Game Development Community

A couple problems, and a crash.

by Yacine Salmi · in General Discussion · 04/19/2002 (2:48 pm) · 4 replies

ok, here's a more serious bug.

First off, in the main screen if I bring up the menu with F11, everything displayed stays displayed. By this I mean my mouse pointer stays painted in every location I go over, and any pull down menus stay painted after I've selected something. However, the options still seem to be working. If I press ESC or F11, everything is back to normal, and the menu is gone. That's one bug. But it doens't cause the game to crash.

Now if I bring up the menu again (with F11) and I try to open a mission to edit, I get a new window to select the mission. That works fine, but once I select the actual mission, nothing happens. The screen stays the same way (i.e. all the ffects from the previous bug still happen), and I can still move the mouse pointer. If I press F11 everything goes away again. However, if I try to bring up the menu again or load a mission to play (those are the only thing I have tried so far), then it seg faults.

From what I can tell from the console output is that the mission actually does get loaded the first time, but nothing actually displays. I wasn't gonna post the whole console output, but it seems that there are a lot of errors, which might be useful.

Anyways this causes a seg fault. This is what I get from the where command in gdb:
#0 0x080e1d54 in GuiTreeViewCtrl::onRenderCell ()

Before the console output, here are my system specs. I should also mention that the game runs great, and that the mission editor works fine in game.

specs:
Debian Prerelease (i.e mostly Woody with a mix of Sid)
kernel 2.4.16
Athlon 1.4 GHz
256 MB (DDR)
NVidia Geforce2 GTS -- driver version 2880
running RW at 1024x768x24 fullscreen.

I hope all this is of some use. Here's the console output. I trimmed some of the stuff at the top cause it's not really useful (at least I don't think it would be):

--------- Loading MODS ---------

......

%
Loading compiled script rw/client/scripts/audioProfiles.cs.
Loading compiled script rw/client/ui/defaultGameProfiles.cs.
Loading compiled script rw/client/ui/PlayGui.gui.
Loading compiled script rw/client/ui/ChatHud.gui.
Loading compiled script rw/client/ui/playerList.gui.
Loading compiled script rw/client/ui/mainMenuGui.gui.
Loading compiled script rw/client/ui/QuitGui.gui.
Loading compiled script rw/client/ui/aboutDlg.gui.
Loading compiled script rw/client/ui/startMissionGui.gui.
Loading compiled script rw/client/ui/joinServerGui.gui.
Loading compiled script rw/client/ui/loadingGui.gui.
Loading compiled script rw/client/ui/endGameGui.gui.
Loading compiled script rw/client/ui/optionsDlg.gui.
Loading compiled script rw/client/ui/remapDlg.gui.
Loading compiled script rw/client/ui/StartupGui.gui.
Loading compiled script rw/client/scripts/client.cs.
Loading compiled script rw/client/scripts/game.cs.
Loading compiled script rw/client/scripts/missionDownload.cs.
Loading compiled script rw/client/scripts/serverConnection.cs.
Loading compiled script rw/client/scripts/playerList.cs.
Loading compiled script rw/client/scripts/loadingGui.cs.
Loading compiled script rw/client/scripts/optionsDlg.cs.
Loading compiled script rw/client/scripts/chatHud.cs.
Loading compiled script rw/client/scripts/messageHud.cs.
Loading compiled script rw/client/scripts/playGui.cs.
Loading compiled script rw/client/scripts/centerPrint.cs.
Loading compiled script rw/client/scripts/default.bind.cs.
Loading compiled script rw/client/config.cs.
Binding server port to default IP
UDP initialized on port 0
Engine initialized...
Loading compiled script rw/client/ui/StartupPopupDlg.gui.
Loading compiled script common/editor/cursors.cs.
Loading compiled script common/editor/editor.bind.cs.
Missing file: common/editor/EditorSaveMissionDlg.gui!
Loading compiled script common/editor/ObjectBuilderGui.gui.
Loading compiled script common/editor/EditorGui.gui.
Loading compiled script common/editor/EditorGui.cs.
Loading compiled script common/editor/WorldEditorSettingsDlg.gui.
Loading compiled script common/editor/TerrainEditorVSettingsGui.gui.
common/editor/EditorGui.cs (107): Unable to find object: 'DropTypeMenu' attempting to call function 'setEnumContent'
common/editor/EditorGui.cs (110): Unable to find object: 'DropTypeMenu' attempting to call function 'setText'
common/editor/EditorGui.cs (226): Unknown command getPrefs.
Object ETerrainEditor(1408) ETerrainEditor -> TerrainEditor -> EditTSCtrl -> GuiTSCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
Cannot find menu item Paint for setMenuItemChecked.
common/editor/EditorGui.cs (884): Unknown command getPrefs.
Object EWorldEditor(1382) EWorldEditor -> WorldEditor -> EditTSCtrl -> GuiTSCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
worldEditor.setMode: invalid mode ''
common/editor/EditorGui.cs (236): Unknown command init.
Object ETerrainEditor(1408) ETerrainEditor -> TerrainEditor -> EditTSCtrl -> GuiTSCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
TerrainEditor::attach: no mission group found
common/editor/EditorGui.cs (2483): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
common/editor/EditorGui.cs (2483): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
Tab data: General Tab_general general_min_height 50 general_scale 300 general_water 0.000 general_centerx 0 general_centery0 tab: Tab_general
Heightfield::eval:0 General
Terraformer::terrainData - TerrainBlock 'terrain' not found.
Heightfield::eval:0 General
Terraformer::terrainData - TerrainBlock 'terrain' not found.
common/editor/EditorGui.cs (2483): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
Heightfield::eval:0 General
Terraformer::terrainData - TerrainBlock 'terrain' not found.
common/editor/EditorGui.cs (2483): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
common/editor/EditorGui.cs (1358): Unable to find object: 'Terrain' attempting to call function 'getTextureScript'
common/editor/EditorGui.cs (243): Unknown command init.
Object inspector(1407) inspector -> GuiInspector -> GuiControl -> SimGroup -> SimSet -> SimObject
common/editor/EditorGui.cs (244): Unknown command init.
Object AreaEditor(1393) AreaEditor -> MissionAreaEditor -> GuiBitmapCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
Loading compiled script common/editor/editorRender.cs.
common/editor/EditorGui.cs (2735): Unknown command getPrefs.
Object Editor(1357) Editor -> EditManager -> GuiControl -> SimGroup -> SimSet -> SimObject
MissionAreaEditor::onWake: no MissionArea object.
GuiControl::awaken: failed onWake for obj: AreaEditor
*** LOADING MISSION: rw/data/missions/stronghold.mis
*** Stage 1 load
*** Stage 2 load
Executing rw/data/missions/stronghold.mis.
Object 'SpawnSphereMarker' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'SpawnSphereMarker' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'SpawnSphereMarker' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'SpawnSphereMarker' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'SpawnSphereMarker' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'CrossbowAmmo' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'CrossbowAmmo' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'Crossbow' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'CrossbowAmmo' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'CrossbowAmmo' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'Crossbow' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'Crossbow' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'CrossbowAmmo' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'CrossbowAmmo' is not a member of the 'GameBaseData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object (null).
Object 'ChimneyFireEmitterNode' is not a member of the 'GameBaseData' data block class
Object 'ChimneyFireEmitter' is not a member of the 'ParticleEmitterData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object Fire1.
Object 'ChimneyFireEmitterNode' is not a member of the 'GameBaseData' data block class
Object 'ChimneyFireEmitter' is not a member of the 'ParticleEmitterData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object Fire2.
Object 'ChimneyFireEmitterNode' is not a member of the 'GameBaseData' data block class
Object 'ChimneyFireEmitter' is not a member of the 'ParticleEmitterData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object Fire3.
Object 'ChimneySmokeEmitterNode' is not a member of the 'GameBaseData' data block class
Object 'ChimneySmokeEmitter' is not a member of the 'ParticleEmitterData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object Smoke1.
Object 'ChimneySmokeEmitterNode' is not a member of the 'GameBaseData' data block class
Object 'ChimneySmokeEmitter' is not a member of the 'ParticleEmitterData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object Smoke2.
Object 'ChimneySmokeEmitterNode' is not a member of the 'GameBaseData' data block class
Object 'ChimneySmokeEmitter' is not a member of the 'ParticleEmitterData' data block class
rw/data/missions/stronghold.mis (0): Register object failed for object Smoke3.
*** Mission loaded
common/editor/EditorGui.cs (107): Unable to find object: 'DropTypeMenu' attempting to call function 'setEnumContent'
common/editor/EditorGui.cs (110): Unable to find object: 'DropTypeMenu' attempting to call function 'setText'
common/editor/EditorGui.cs (226): Unknown command getPrefs.
Object ETerrainEditor(1408) ETerrainEditor -> TerrainEditor -> EditTSCtrl -> GuiTSCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
Cannot find menu item Paint for setMenuItemChecked.
common/editor/EditorGui.cs (884): Unknown command getPrefs.
Object EWorldEditor(1382) EWorldEditor -> WorldEditor -> EditTSCtrl -> GuiTSCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
worldEditor.setMode: invalid mode ''
common/editor/EditorGui.cs (236): Unknown command init.
Object ETerrainEditor(1408) ETerrainEditor -> TerrainEditor -> EditTSCtrl -> GuiTSCtrl -> GuiControl -> SimGroup -> SimSet -> SimObject
Heightfield::eval:0 General
Heightfield::eval:0 General
common/editor/EditorGui.cs (243): Unknown command init.
Object inspector(1407) inspector -> GuiInspector -> GuiControl -> SimGroup -> SimSet -> SimObject
common/editor/EditorGui.cs (244): Unable to find object: 'AreaEditor' attempting to call function 'init'
common/editor/EditorGui.cs (0): Unable to find function closeMessageHud
common/editor/EditorGui.cs (2735): Unknown command getPrefs.
Object Editor(1357) Editor -> EditManager -> GuiControl -> SimGroup -> SimSet -> SimObject
% Segmentation fault

#1
04/19/2002 (3:23 pm)
While it would be good if the editor handled this situation better, the simple solution is to start a mission first, then open the editor after the mission is running. This was the only way to do it in T2.
#2
04/19/2002 (3:51 pm)
This what I was thinking as well. Maybe the F11 button should just be disconnected from it's key binding.
#3
04/20/2002 (12:53 am)
I think that bug is also on windows. The reason it does that on the main menu is because a mission is not loaded till you join/start a server.

The editor needs to have checking in it that disables it if a mission is not loaded.

-Tim aka Spock
#4
04/20/2002 (2:29 pm)
I just checked in a fix for the editor so that it won't try to launch if no mission is loaded; instead it just pops up a dialog telling the user to load a mission.