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 / Unknown error! Help

Author
Message
SeVeN
22
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 22nd Feb 2003 19:34
I have written a function to create random 3d landscapes. Its definition is:

function DeployParticle( XCell as integer, YCell as integer, MN as byte, MH as byte, MW as byte )

` Neighbour tiles information table
dim Tiles(8,3)
...


and starts at line 45. But, when I compile the module, the DB compiler returns:

DarkBASIC Professional Editor
#100027: Initialisation data 'FS@DeployParticle@F1' is
incompatible type at line 48.


I don't know how to resolve this error. When I try to change the parameters types, the final F1 changes to F0 or F2.

Can you help me, please?
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Feb 2003 20:43
try this:

function DeployParticle(XCell,YCell,MN,MH,MW)

ie. define them all as numbers leaving out the AS statements and converting the MN,MH,MW values to bytes inside the function.

The DeployParticle name may already be used internally by DBP, try renaming to it.

NOBODY has a forum name as stupid as Darth Shader. I do.
SeVeN
22
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 26th Feb 2003 18:50
I have tried to rewrite the functions as follow:

function RaiseCell(XCell,YCell,MN,MH,MW)

` Neighbour tiles information table
dim Tiles(8,3)
...


The DBPro compiler found the same error at the
same line.

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 26th Feb 2003 19:50
First of all, have you got P3.1?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
SeVeN
22
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 12th Mar 2003 19:35
Yes, I've the patch 3.1

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 12th Mar 2003 20:33
This compiles okay...



Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2025-05-18 21:21:36
Your offset time is: 2025-05-18 21:21:36