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 / Compilation Failed (Syntax Errors)

Author
Message
Alaror
15
Years of Service
User Offline
Joined: 9th May 2011
Location:
Posted: 4th Jul 2011 08:41 Edited at: 4th Jul 2011 22:12
EDIT: I gave my code another read through and found that I had previously declared the constant con_Chunk_Size, which I have no remembrance of doing haha. Would be nice if the error message was a bit more descriptive.


I\'m working on chunk loading code for my game right now and have run into a problem, though I\'m not sure what it is. When I try to compile my code it provides the ever descriptive message of \"Compilation Failed (Syntax Errors)\". I wasn\'t having any problems before I worked on the chunk loading code, so I\'m guessing the problem lies somewhere in what I wrote recently. After scanning through all the new code twice looking for silly mistakes (which I did find) I\'m not able to narrow down what might be causing this error to appear. I\'ve posted all the code relating to chunk loading below in hopes that someone bored enough can help me figure out what I\'m doing wrong Sadly you won\'t be able to run it since it refers to other pieces of code.

This is the first time I\'ve had to use any file commands, so it may very well be a problem in that. The first code section highlights my usage of these to make it easy for you to see if they\'re implemented correctly. Of note is that I\'m trying to use the SAVE/LOAD ARRAY commands with a 2d array without knowing if it\'s even possible.

Also, if you\'re seeing me do anything stupid in the code (optimization or otherwise) please feel free to let me know!





Login to post a reply

Server time is: 2026-07-11 02:36:26
Your offset time is: 2026-07-11 02:36:26