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 / How about this one? Code NOT compiling

Author
Message
mindsclay
14
Years of Service
User Offline
Joined: 1st May 2012
Location: Rocklin, CA, USA
Posted: 6th Jul 2013 21:47
I select compile and run, but nothing happens. No error messages. Nada.

???

www.mindsclay.com
lucifermagus.mindsclay.com (not working with Firefox)
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Jul 2013 22:08
Post the code you're trying to run.

Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Jul 2013 22:08
Have you included some way of suspending the program? IE wait key?
Otherwise it might simply be executing and returning to the desktop without you realising it even started.
mindsclay
14
Years of Service
User Offline
Joined: 1st May 2012
Location: Rocklin, CA, USA
Posted: 6th Jul 2013 22:13
There is no compilation successful message. So it did not compile.

Too many lines of code to present and I have some proprietary algorithms I do not want to share.

If you need to see the code then I am assuming there is no precedence for this as a DB bug.

www.mindsclay.com
lucifermagus.mindsclay.com (not working with Firefox)
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Jul 2013 22:27 Edited at: 6th Jul 2013 22:29
Can you post a screen shot of the output window? (where all of the text goes when you compile stuff). Is there anything in there at all?

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Jul 2013 22:30
This is what mine looks like:



TheComet

Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 7th Jul 2013 00:37
try the indigo IDE.. if something goes wrong, it should say so.

Stream SnifferTools/Plugins/Models/Games and more!
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Jul 2013 01:07
Quote: "... I have some proprietary algorithms I do not want to share."

Then I have no interest in helping you. Nothing personal, if you want to keep your cards close to your chest then that is your right and I respect that, but I don't see any reason for the community to help you if you are not going to reciprocate.
mindsclay
14
Years of Service
User Offline
Joined: 1st May 2012
Location: Rocklin, CA, USA
Posted: 7th Jul 2013 01:32
I have reciprocated. Here's another contribution...

My code wouldn't compile because of using #CONSTANT
Does not compile with it in the code.

My questions deal with the compiler and the DarkBasic language. I am not asking "how" to write software. I only ask questions when Dark Basic is acting weird. The behavior of my software is my own problem.

www.mindsclay.com
lucifermagus.mindsclay.com (not working with Firefox)
mindsclay
14
Years of Service
User Offline
Joined: 1st May 2012
Location: Rocklin, CA, USA
Posted: 7th Jul 2013 01:35
to TheComet:
You must be using a different compiler, or my DB editor is older.

www.mindsclay.com
lucifermagus.mindsclay.com (not working with Firefox)
mindsclay
14
Years of Service
User Offline
Joined: 1st May 2012
Location: Rocklin, CA, USA
Posted: 7th Jul 2013 01:45 Edited at: 7th Jul 2013 01:53
to OBese87:
So far the community hasn't helped me but once. I am figuring out my own issues despite the erroneous answers and constant asking for code.

I will include code if I think the code is relevant and it will work as a snippet. But showing the "entire" game I am creating is not smart.

In this case, I didn't think it was relevant because the compiler would not run. It was a compiler issue not a code issue. If this issue had precedence I thought someone might say "BTW, are you using #CONSTANT? It keeps the compiler from running." One of the bugs known to keep the compiler from running. But obviously that information is not in the community, or at least that knowlegable person hasn't read my post.

How about this: When my game sells 100,000 copies I will release my code to the community. Does that placate your feelings?

www.mindsclay.com
lucifermagus.mindsclay.com (not working with Firefox)
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 7th Jul 2013 01:46
The problem, mindsclay, is that we can't solve your problem with the mediocre information you're giving us. Are we supposed to read your mind so we can know what the hell is going on on your computer?

-What DBP version are you using?
-What editor are you using?
-What operating system are you on?
-What error messages are you getting? ("because of #constant" is NOT helpful)

If you're so touchy about your "precious algorithms", at LEAST isolate the section of code causing your problems and post that.

Right now, we have NOTHING to go from, and you're wasting our time.

TheComet

Burning Feet Man
18
Years of Service
User Offline
Joined: 4th Jan 2008
Location: Sydney, Australia
Posted: 7th Jul 2013 01:51
Are you doing anything unusual with the #constant command? Perhaps you could you gut your mathamagical secrets from your code, replace them with 1+1 and still produce the compilation error, and thus, post your code for review?

Help build an online DarkBASIC Professional help archive.
DarkBasic Help Wikia
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 7th Jul 2013 02:32 Edited at: 7th Jul 2013 02:35
You need to get to the point where it last worked. Then tell us which bit doesn't work. If it has never worked then it wasn't installed properly. And I don't think that you need to post all of your code, just a couple of lines. Nobody can code a secret in a couple of lines code.

Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 7th Jul 2013 06:17 Edited at: 7th Jul 2013 06:20
truth is, what you think is or isnt relevant is probably incorrect or you would be able to resolve the issues yourself.

i have never seen the use of #constant cause the compiler to simply fail with no reported errors. if using #constant is causing issue, it is more likely an issue in how you are using it (code problem) rather than an issue with it simply being used at all (compiler problem)

are you using it to store a simple value? or are you using it to embed additional code?

obese and comet are right, we cant help you if you wont help us help you. no one is interested in ferreting out your secrets, but we need more to go on than a general statement of "this wont work"

you think it is not compiling because it gives no message and then doesnt run, if you wont post the output window as per thecomet, will it run at all in debug or step through mode? if you delete or move the existing .exe and try to comile is a new .exe created at all whether it runs or not?

Shazam!
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 7th Jul 2013 08:40
"Hello my program won't compile, but I don't want to provide a code example. Help please."

Lol how is anyone supposed to help someone who won't provide any effort into making it easy to help them. I have like 70000 lines of code but if I need help I'll at least provide a code example, or detail what recent changes I made. Make people do as little of the leg work as possible. Also I am always grateful when someone is helping not just to the person whose answer I liked most or worked.

Quote: "So far the community hasn't helped me but once. I am figuring out my own issues despite the erroneous answers and constant asking for code."


Quote: "But obviously that information is not in the community, or at least that knowlegable person hasn't read my post."

That person is never going to respond to you. Everyone is repulsed by your horrific mentality, and despicable attitude.

JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 7th Jul 2013 16:04
Quote: "The problem, mindsclay, is that we can't solve your problem with the mediocre information you're giving us. Are we supposed to read your mind so we can know what the hell is going on on your computer?"


This is the exact reason I stopped helping him on the other thread. The code he did give works, AFTER I fixed two glitches it had. But apparently it wasn't what he was after. So once I saw that he was being rude with the help he did receive, I stopped replying to his other thread after that.

https://soundcloud.com/toraktu
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 7th Jul 2013 19:19 Edited at: 7th Jul 2013 19:28
Quote: "So far the community hasn't helped me but once. I am figuring out my own issues despite the erroneous answers and constant asking for code."

I will explain my sentiment so you understand where I'm coming from...
I have learned a lot from this community, much of my programming style and knowledge has come from studying other people's code on this forum. I feel like it would be very selfish of me not to repay the community by sharing what I've learned. You might not be as indebted to the community as me but you got your knowledge from somewhere and someone. Even if you picked up a book and taught yourself, you were still being taught by the author. The fact your book exists at all is thanks to an immeasurable number of people, not only those involved directly in its writing and production, but those who have contributed to the technology that aided its creation and those who have expanded the language used to convey its information. I'm probably heading too close to philosophy and politics for this board so I'll stop there.

Quote: "How about this: When my game sells 100,000 copies I will release my code to the community. Does that placate your feelings?"

That's an empty promise. If you want to keep your code to yourself because you want to sell it that's up to you. If you decide to release the code later down the line then that's your choice too. I don't think you are a bad person for keeping your algorithms to yourself, but I don't believe in intellectual property and I don't want to support it. I realise that is an idealistic viewpoint but it's how I feel about it.

Another thing is that a lot of new coders (I don't know if this applies to you) are reluctant to share their code because they think it is very valuable but it is invariably trash. These coders stunt their own progress by being reluctant to share their code and receive useful help from others.
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 7th Jul 2013 22:23
Quote: "I will explain my sentiment so you understand..."

I think I share this sentiment.

Login to post a reply

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