Game Development Community

Set::getObject index out of range?

by Stefan Lundmark · in Torque Game Engine · 04/13/2004 (10:30 am) · 3 replies

Quote:
Got Connect challenge Response
Sending Connect Request
Connection established 1374
Mapping string: ServerMessage to index: 0
Mapping string: MsgConnectionError to index: 1
Set::getObject index out of range.
Set::getObject index out of range.

It does not exactly say what is out of range, just that it is an object. Is there some way to see this?

#1
04/13/2004 (9:35 pm)
You could turn tracing on with trace(1) and see.
#2
04/14/2004 (6:46 am)
My build is really starting to act strange.
I set trace(1) and got alot of information.

I also enabled the debug build which now didn't crash but show an error message instead, very helpful - except that I don't have a clue about what it means.

Quote:Line 723 in Resmanager.cc
ResourceObject::construct: NULL resource create function.
That's from the debugger. It comes up when the DataBlock phase has been completed when loading a mission on a dedicated server, but not on any listen servers. Then crashes.

A closer look leads to some kind of CRC code in resmanager.cc.

The console says this;
Quote:
Mapping string: MsgConnectionError to index: 1
Entering clientCmdServerMessage(5 MsgConnectionError, , Version mismatch, please reinstall.)
Entering defaultMessageCallback(5 MsgConnectionError, , Version mismatch, please reinstall., , , , , , , , , )

The same message is given on 3 more places.
I haven't touched the source in 2 weeks.
#3
04/14/2004 (2:03 pm)
It looks like a resource type isn't being registered properly, as suggested by the ResourceObject::construct error. Have you tried doing a clean rebuild?