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 / Darkanoid not compiling properly.

Author
Message
Stubie
13
Years of Service
User Offline
Joined: 19th Jun 2013
Location:
Posted: 19th Jun 2013 21:32
Hi, I am trying to compile darkanoid from game programming pro second edition. I thought I hadn't typed it in correctly so opened the source from the disk. Same problem!!
The error is:-
parameter mismatch in command `sync` at line 49.
This line in full is "sync on"

Could anyone point me in the right direction please.
I'm using the latest version of darkbasic 1.054

Thank you in advance.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 20th Jun 2013 01:00
Please paste the 2/3 lines above and below this command so we can check it out.

This is my current project, check it out! [href]forum.thegamecreators.com/?m=forum_view&t=204576&b=8[/href]
This is my website, check it out! [href]http:\\www.TeamDefiant.co.uk[/href]
Stubie
13
Years of Service
User Offline
Joined: 19th Jun 2013
Location:
Posted: 20th Jun 2013 22:56
Hi, thanks for the quick reply.

Code as follows:-

`start game running
init_game()
run_game()
end

function init_game()
sync on ***error from 1st post on this line***
sync rate 40
hide mouse
randomize timer()
Stubie
13
Years of Service
User Offline
Joined: 19th Jun 2013
Location:
Posted: 22nd Jun 2013 00:46
Finally sussed it!!!
After checking through dozens of posts I found an unrelated one that mentioned installing darkbasic in the root of C: drive.

Problem solved. Must be an issue with windows 8, UAC was switched off as well.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 22nd Jun 2013 10:29
Quote: " I found an unrelated one that mentioned installing darkbasic in the root of C: drive."

Sounds like one of my posts too. lol

Glad you got it sorted.

This is my current project, check it out! [href]forum.thegamecreators.com/?m=forum_view&t=204576&b=8[/href]
This is my website, check it out! [href]http:\\www.TeamDefiant.co.uk[/href]
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 22nd Jun 2013 21:17
Quote: "I'm using the latest version of darkbasic 1.054"

Just for your information, version 1.054 is the one you get straight off the CD. The newest version should be 1.0761, which is literally years newer :p
There is also a beta for 1.077 which lots of people use.


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2026-07-07 00:50:36
Your offset time is: 2026-07-07 00:50:36