Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Converted a function from DBP to C++... it hangs forever... what am I missing here? Neverending loop perhaps?

Author
Message
Twisted Steel Software
17
Years of Service
User Offline
Joined: 21st May 2007
Location: Teh Interwebs
Posted: 23rd Nov 2007 06:39
Current:


Original:


Thanks in advance,
Jim

Intel Pentium 4 3.40 Ghz HT, 1.5 GB RAM, Nvidia Geforce 6800, 19" Dell CRT Monitor ... I need to upgrade ^-^
Deagle
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Finland
Posted: 23rd Nov 2007 06:46
for(z=1;tilez-1;z++)
I'm not sure, but that might be the problem. Maybe it's supposed to be z<tilez-1 instead of tilez-1?

Deagle aka D-Eagle
Twisted Steel Software
17
Years of Service
User Offline
Joined: 21st May 2007
Location: Teh Interwebs
Posted: 23rd Nov 2007 07:59
ahha! thanks a million. It's a never-ending loop.. so it hangs.

Intel Pentium 4 3.40 Ghz HT, 1.5 GB RAM, Nvidia Geforce 6800, 19" Dell CRT Monitor ... I need to upgrade ^-^
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 23rd Nov 2007 10:35
You also have to initialize your variables, because they dont always start at 0.

"It's like floating a boat on a liquid that I don't know, but I'm quite happy to drink it if I'm thirsty enough" - Me being a good programmer but sucking at computers
Twisted Steel Software
17
Years of Service
User Offline
Joined: 21st May 2007
Location: Teh Interwebs
Posted: 23rd Nov 2007 10:51
Zotoaster: Thanks a million as well. Removed a warning I was getting.

Intel Pentium 4 3.40 Ghz HT, 1.5 GB RAM, Nvidia Geforce 6800, 19" Dell CRT Monitor ... I need to upgrade ^-^
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Nov 2007 14:31
All of your loops are off by 1 too.

For example, this:


you've converted to this:


when it should be this:


or this:


Utility plugins collection and
http://www.matrix1.demon.co.uk for older plug-ins and example code
Twisted Steel Software
17
Years of Service
User Offline
Joined: 21st May 2007
Location: Teh Interwebs
Posted: 23rd Nov 2007 21:32
IanM: Thanks for that.

Intel Pentium 4 3.40 Ghz HT, 1.5 GB RAM, Nvidia Geforce 6800, 19" Dell CRT Monitor ... I need to upgrade ^-^

Login to post a reply

Server time is: 2024-11-16 20:57:56
Your offset time is: 2024-11-16 20:57:56