home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Developers Corner

by Shockie on 10/19/2002 16:36, 279 messages, last message: 02/04/2006 13:50, 160522 views, last view: 05/18/2024 15:46

i would like to have this thread for development problems/ideas, and what people have done. i believe it could be quite useful!

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages

#240: .

by pushplay on 08/01/2003 06:46

I thought that physics had been made independent of grahpics fps?

reply to this message

#241: Re: Weighted projectiles and gluUnproject()

by Aardappel on 08/01/2003 10:47, refers to #237

making fps independant code for anything physics related is notoriously hard. As you know I solved this by making the physics update at least 50 fps (above 50 it doesn't change much anymore). The projectile update however was not part of the physics update. I suggest you fix this by calling it from the physics update function.

reply to this message

#242: Hmmm

by pushplay on 08/02/2003 08:18

Is it likely that Cube would choke on too many conoutfs in a row? Say something on the order of 30? I'm seeing it crash in the middle of a string making its way to stdout.

eg: conoutf("abcdefghijklmnop");
-> acdef

reply to this message

#243: Re: Hmmm

by pushplay on 08/03/2003 11:53, refers to #242

Maybe it's not the conoutf function. My level gen function works without a hitch when told to make a size seven map, but after that it may crash. It seems odd because the function is generalized to handel any map larger than 64x64 cubes. Is it possible that Cube is choking on some function dependant on time which isn't getting its turn until 0.5-2 minutes later when the new map is built and reloaded?

reply to this message

#244: Re: Hmmm

by Aardappel on 08/04/2003 10:48, refers to #243

unlikely.

reply to this message

#245: .

by pushplay on 08/04/2003 23:09

Well something somewhere is taking a long walk off a short array. I miss how Java tells you what line it was.

reply to this message

#246: ..

by Pathegreat on 08/05/2003 21:29

i think the better the computer the bigger the map size it can take, mine is 11 and my friends is 9

reply to this message

#247: ...

by pushplay on 08/05/2003 22:54

I don't know if that's necessarily relevant to the problem. When looking through the newent function I realized that it's recalcing the light after every placement. I created a function to turn that off and took the amount of time it takes to make a size 10 map down from 5 minutes to 5 seconds. So now I can sit here and run it a bunch of times to see where it crashes.

When creating a size 9 map, the map makes it to disk, and is loaded before the game crashes. When making a size 10 map, the game crashes before it's done placing the monsters. Now I'm wondering if I'm going beyond some limit on the number of entities that can be placed.

reply to this message

#248: ..

by LOneWoolF on 08/17/2003 22:47

Hi guys
im makin a game, and also use enet, i learnd using enet by looking @ the cube source, and it seemed not 2 be difficult...

after adding enet 2 my game a always get the following error, about 3 seconds after connecting to the server:

"Die Anwendung in 0x77f48d2c verweist auf Speicher in 0x00000000. Der Vorgan "written" konnte auf dem Speicher nicht durchgeführt werden."

IN ENGLISH:
"The program in 0x77f48d2c points to memory in 0x00000000. The process "written" couldn't be done on it"<-<- SORRY FOR MY BAD ENGLISH... :(

it only happens few seconds after connecting, and also if i disconnect before the error comes up

r my connection routines wrong?

reply to this message

#249: ..

by LOneWoolF on 08/17/2003 22:51

<-<- not the programm, the instruction...

reply to this message

#250: Re: ..

by pushplay on 08/18/2003 00:08, refers to #248

Null pointer.

reply to this message

#251: Re: ..

by Piglet on 08/18/2003 09:42, refers to #250

Slightly less succinctly than Pushplay put it...

You have probably declared and tried to use a pointer without assigning it a value with the 'new' statement (or equivalent)

if you dont know what I mean by pointer you NEED to find out.

Hope that helps

reply to this message

#252: ..

by LOneWoolF on 08/18/2003 11:27

Lo guyz :D
seeing that ":D" a line before?
it means i got it!!! :D

the client destroyd the received packets 2 times, whaz not really good :P

the server has, longer time, the same problem, but not "written", iz a "read" instruction...
maybe i destroy a packet too early there? lez c :)

GreeZ,
LOneWoolF

reply to this message

#253: ..

by LOneWoolF on 08/18/2003 11:30

sry for writing 2 msgs but i forgot:
the server runs fine, that message just appears @shuttin it down

reply to this message

#254: where did the .dsw link go...

by newbiecode on 11/09/2003 15:10

can somebody post up the workspace files for msvc++ again please? the link at the beginning is broken :(

reply to this message

#255: stupid neubie problem

by SGT_Will_Burngrene on 12/19/2003 00:41

Hi all,

I just found cube and have been trying to build from sources using vs7 but I keep getting this one error;

"physics.cpp
...\physics.cpp(295) : error C2668: 'sqrt' : ambiguous call to overloaded function"

on this;

"// automatically apply smooth roll when strafing

if(pl->strafe==0)
{
pl->roll = pl->roll/(1+(float)sqrt(curtime)/25);
}
else
{
pl->roll += pl->strafe*curtime/-30.0f;
if(pl->roll>maxroll) pl->roll = (float)maxroll;
if(pl->roll<-maxroll) pl->roll = (float)-maxroll;
};"

Specificly;

"pl->roll = pl->roll/(1+(float)sqrt(curtime)/25);"

I'm new to c++ & cube and just need to know I can build it as-is before I try to modify it thinking the error is in my code.

Thanks

reply to this message

#256: Re: stupid neubie problem

by Aardappel|home|holland on 12/19/2003 12:09, refers to #255

replacing sqrt(curtime) with sqrt((double)curtime) should fix it (no idea why it does this on your vs7 and not on mine).

reply to this message

#257: ..

by SGT_Will_Burngrene on 12/19/2003 16:11

Thank you!

0 errors 6 warnings, I guess I'm good to go ;)

reply to this message

#258: Release/ETA

by Cubefan on 12/20/2003 01:01

When can I download a new Version of Cube?

reply to this message

#259: eta

by HexFex on 12/20/2003 13:14

release maybe around this weekend

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
54036873 visitors requested 71816920 pages
page created in 0.056 seconds using 9 queries
hosted by Boost Digital