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 / Text printing incorrectly?

Author
Message
Mugen Wizardry
User Banned
Posted: 1st Jan 2011 16:06
Hi all. I'm having a bit of a problem getting my text to type the right words correctly.

It works for the FIRST sentence, then it stops working after that.

When it prints out the text, it does something like this:

This is a test.
is a test.
is a test.

Etc..

You can't compile the code so I will attach an EXE to this post

Here is the code:



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 1st Jan 2011 18:29 Edited at: 1st Jan 2011 18:32
Maybe the error is with using text$ as a variable, with text being a reserved word, we can't run any of this code so thats about as much as I can tell you.

Edit: Doh, hold on, i need to learn to read

Okay, scratch the above, that is quite a peculiar problem Sorry I can't be more help.

Mugen Wizardry
User Banned
Posted: 1st Jan 2011 18:45
Thats ok

Does anyone else wanna take a stab at it?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!
Mugen Wizardry
User Banned
Posted: 1st Jan 2011 19:56
anyone?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 1st Jan 2011 20:33
Try writing the entire string to a file?

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 1st Jan 2011 20:34
Any chance you could post a simpler version? That's a lot of code to go through... I'll try to take a look anyway while my curry is cooking but if you don't get an answer it's because there was so much code.

I'll try...

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 1st Jan 2011 20:40
Since:
1-We can't compile it
2-You are using a plugin nobody has
3-The code that writes the text uses the aforementioned plugin

Answer:
Impossible.

What are we psychic?

Surely you can see this is impossible for anyone here to answer? Ask whoever wrote the plugin...

Mugen Wizardry
User Banned
Posted: 1st Jan 2011 23:08
i gave you an exe and the code :/

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Jan 2011 00:15 Edited at: 2nd Jan 2011 00:16
... along with a massive mountain of an obstacle to helping you out. Which 3 of baxslash's 3 points didn't you understand?

So yeah, you gave him the code and the exe.

However, we have no way to know how that plug-in works (or even IF it works), what the commands do (IF they do anything), what restrictions they do or don't have, or even any help files to give us a hint. We can't even try stuff to see what happens, because we don't have the plug-in (unless we copy it while the program is running, against the authors wishes).

I suggest that you write your teletype code again, without that plug-in, using standard DBPro commands or commands from plug-ins that ARE available to other people. Then when you have that, if it's not working correctly the problem is with your code. Otherwise, modify to use the plug-in and if it doesn't work then the problem is with the plug-in. Then you can direct your requests for help to the appropriate places: here if you can't get the non-plug-in code working, the plug-in author if it's the plug-in, or nowhere if it's all working fine.

thenerd
17
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 2nd Jan 2011 19:35
slightly off-topic, but did you write that plugin? It looks awesome!

Mugen Wizardry
User Banned
Posted: 2nd Jan 2011 19:58
no i did not. one of my friends did.

im his beta tester

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 2nd Jan 2011 20:00
So report the problem to him. Simples.
Mugen Wizardry
User Banned
Posted: 2nd Jan 2011 20:04
thats what i was thinking, but he hasnt been on for a while

so i thought id ask you guys

thanks anyway! ^^

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd Jan 2011 22:51
A pleasure, as always

Login to post a reply

Server time is: 2026-07-18 07:32:33
Your offset time is: 2026-07-18 07:32:33