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.

DarkBASIC Professional Discussion / could someone try and compile this code please?

Author
Message
Asheron
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location:
Posted: 20th Sep 2002 16:35
this code always constantly reports errors too me. (wierd messed up errors) Could someone please try compiling using the image from the L-type demo and tell me if you know what the heck is going on?

Rem Project: SideScroller
Rem Created: 9/19/2002 7:39:26 PM

Rem ***** Main Source File *****
gosub _prep_world
gosub _prep_character
gosub _prep_items
gosub _prep_enemies
sync on
sync rate 0
do
gosub _handle_player
sync
loop

_prep_world:
load image "ground\ground.bmp",1
make matrix 1,3000,1500,15,15
prepare matrix texture 1,1,1,1
position matrix 1,-750,-300,0
tr#=50
for x=0 to 15
set matrix height 1,x,0,0
for z=1 to 14
h#=cos((z-7)*20)*100.0
h#=h#+tr#
if x
Real time skinning for your models. PowerPaint3d coming soon.
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 20th Sep 2002 16:44
Not all the code is there...

Yes, I really am THAT good...
Asheron
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location:
Posted: 21st Sep 2002 03:16


Real time skinning for your models. PowerPaint3d coming soon.
Zep
21
Years of Service
User Offline
Joined: 31st Aug 2002
Location: From PA, USA. Currently reside in Hanoi, Vietnam
Posted: 21st Sep 2002 03:19
try putting spaces after your commas and before and after = signs...

I read somewhere else this fixed "weird" problems he was getting

Zep--

Asheron
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location:
Posted: 21st Sep 2002 03:57
windows just says it has generated errors and will now close

Real time skinning for your models. PowerPaint3d coming soon.
Matto
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 21st Sep 2002 04:52
Ok I tried to run this for you, heres what I got from your source only changing the image:

First I compiled it to check for errors, nothing was reported so I ran the EXE and got this Illeagle Error.

DBP_PROGRAM caused an invalid page fault in
module D3D8.DLL at 0177:024d9f1c.
Registers:
EAX=00000000 CS=0177 EIP=024d9f1c EFLGS=00010216
EBX=00000000 SS=017f ESP=0064f224 EBP=00000000
ECX=00000000 DS=017f ESI=011f27a0 FS=1c17
EDX=00000000 ES=017f EDI=008f93d0 GS=0000
Bytes at CS:EIP:
8b 53 08 c1 e2 1f 8b 03 8b c8 d1 e8 0b d0 89 54
Stack dump:
011f24a0 00000000 00000000 00000000 024da1b0 011fc040 011fbf48 011f24a0 011fc058 00000000 00000180 024daca3 011fc040 011fc058 011f24a0 00000001

I have tried this now several times and get the same error, it does compile but will not run without this error so far..

hope this helps..

1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
Asheron
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location:
Posted: 21st Sep 2002 05:44
urgle /me has no clue as to what the heck that means. Well I guess I'll try recoding it from scratch

Real time skinning for your models. PowerPaint3d coming soon.
Matto
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 21st Sep 2002 05:44
hmm after many more attempts I have managed to get part of the code working with some(lots) adjustments here and there, all wrong probably but really DBP was being a pain in the botty, I will leave the source here and comment on what was changed for you(hope you can understand it). the matrix stuff stopped it from running though and I presume is something to do with the Direct 3D but I am not sure. hope this helps a little further.



1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
Asheron
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location:
Posted: 21st Sep 2002 05:51
can you run this code as well? also any idea why the get ground height part isn't working? and lastly... any idea how to get rid of that second matrix in the background *urgle*



Real time skinning for your models. PowerPaint3d coming soon.
Matto
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 21st Sep 2002 06:17
yes I can do that, but not until tomorrow as I have 4 hours sleep until work, when I get home from work I will look over it, if it is not sorted by then of course. I appologise for the delay, but really, I need sleep..

zzzZZZZ

1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
Mentor
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 21st Sep 2002 15:06
well it runs, I get two matrix, one static and one that moves with the cursor keys and jumps down if you press down and then back up (instantly) if you release, theres a static box on the static matrix and a small box that floats past when you scroll the second matrix far enough, I tried editing but my setup isn`t that stable with pro and I did something wrong that caused a crash, no idea what that second matrix is in aid of, lot`s of posts indicate that the matrix isn`t working properly and ground height doesn`t work, I have given up on major projects until patch 2 comes out

Mentor.

Fireburst
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Sep 2002 20:52
I think it's best to wait for the next patch before attempting anything large.

I am making my media and a cartoon intro for my first game atm so i'm tied up for a few weeks (which is lucky) which I hope will mean that I can get coding then with a fighting chance of things working

In theory, there is no difference between theory and practice. But in practice, there is.

Login to post a reply

Server time is: 2024-03-29 07:28:45
Your offset time is: 2024-03-29 07:28:45