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.

Code Snippets / No Media Memblock Tunnel Generation

Author
Message
Tomu
21
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 19th May 2005 15:00 Edited at: 28th May 2005 03:40
Hi all

Tomu here, maker of Blindsight.

Here is the no media tunnel generation code for the tunnels in my game

i hope that it can help understand memblocks a bit more

it also uses a rubbish no media texture generator function!

Feel free to use this code in anything your doing. if you want to mention me then great if not then i wont be pushy lol



Enjoy!

Tomu

edit:

if you have any version higher than 1.051 then this code will work:



Tomu



- 3.4Ghz - 2048MB RAM - RADEON X800SE -
CuCuMBeR
22
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 19th May 2005 17:28
runtime error 118 - array doesnt exist or subscript out of bounds at line 150
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 20th May 2005 04:28 Edited at: 20th May 2005 04:29
Change line 146 to:


Really neat Tomu! I like it.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
dj blackdragon3710
20
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 20th May 2005 06:31
Really entertaining .

It has been said that the body is a slave to the mind. Only the mind knows no freedom.
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 20th May 2005 07:41
Very nicely done !

French gui
21
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 21st May 2005 05:54
Wonderful! (...the tunnel is too short!)

Sorry for my English...
Tomu
21
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 23rd May 2005 08:33
Hi Thanks for trying it out

Sorry bout the error it works fine for me cos i have a reeeely old version of DB

so thanks riddeeee for fixing it for all the new versions

remember changing the variables which are mostly commented changes stuff like the length and radius etc

Tomu



- 3.4Ghz - 2048MB RAM - RADEON X800SE -
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 23rd May 2005 09:14
Hey Tomu. Could you make an endless tunnel? Maybe have 10 segments and cycle through, deleting or moving the last and making it the first. Maybe go 5 ahead and 5 behind or something?

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
CuCuMBeR
22
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 23rd May 2005 20:27
Strange, i still get the same error on line 165 after the change
Tomu
21
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 24th May 2005 04:31 Edited at: 28th May 2005 03:40
RiiDii:

yeah you could by copying the memblock over to a second memblock but only copying from the second segment to the last and then filling in the data for the last segment. shouldnt be a problem. ill try and implement it later.

CuCuMBeR:

Hmmm. this is such an odd error not sure why it happens on the later versions of DB... maybe RiiDii can explain

Tomu



- 3.4Ghz - 2048MB RAM - RADEON X800SE -
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 24th May 2005 11:46
@CuCuMBeR: What version are you running? I have 5.8. Tomu is using a very old version that TGC is denying exists - now that's old .

@TGC: Just kidding around TGC - you know that, right???

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
CuCuMBeR
22
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 24th May 2005 16:54
i also have 5.8, i think it is nothin to do with versions. it has somethin to do with the arrays.
Tomu
21
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 25th May 2005 05:04
hey riidii, do you mind posting your fixed code so that i can see if it works on my version?

Tomu



- 3.4Ghz - 2048MB RAM - RADEON X800SE -
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 25th May 2005 12:24
Sure thing:


I'm using 5.8 online version to run this. I haven't tried the box version. I'll give it a shot later tonight. Also, it's very hard to try and debug it if it's working for me.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
CuCuMBeR
22
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 25th May 2005 17:39
cool, it works great now and i liked it.
Tomu: could you rem some lines so i could understand the memblocks please
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 27th May 2005 21:42
Thanks RiiDii. I can run it now. That is absolutely amazing Tomu!

Tomu
21
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Block C Flat 2 Room 8
Posted: 6th Jun 2005 03:22
Thanks alot andrew feel free to use or learn from or hack up the code to make new things

Thanks ridii for your support in translating to the newer generation of DB

Tomu



- 3.4Ghz - 2048MB RAM - RADEON X800SE -
jasonhtml
21
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 27th Aug 2005 17:37
hey! that was cool! i just dont see the point in it though... but i havent seen ur game.. so, what do i know

Deathquest: 60% (MMORPG)
DD Studios Website: http://www.geocities.com/jasonhtml/
DD Studios Forum: http://s6.invisionfree.com/DD_Studios_Forum

Login to post a reply

Server time is: 2025-05-15 22:39:12
Your offset time is: 2025-05-15 22:39:12