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 / Splash screen reading?

Author
Message
Mugen Wizardry
User Banned
Posted: 12th Dec 2010 18:36 Edited at: 12th Dec 2010 19:02
Hi all. I'm having a bit of a problem with my code. It does NOT need tested by any of you except me, because I'm the only one with beta test access to the X Plugin. If you would like more information on the X Plugin, be sure to visit http://axiaentertainment.com/ for more details.

Now the thing is, I would like my program to generate a "splash.xt" file.

and read from splash.xt the colors of each part of the window.

here's the code:



The functions are:



basically, i need it to read and write all the colors from splash.xt, line by line.

if 1 line has 4 seperate colors for topleft,topright,bottomleft, and bottomright, i need it to reach each color on that line 1 at a time.

Thanks!

P.S. The colors can be either rgb or hex

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: 12th Dec 2010 20:30
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!
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 12th Dec 2010 20:36
A hex and a string are two completely different types. I doubt that X-plugin of yours parses strings into a color.

A color is defined by 4 bytes (= 1 DWORD), which you have probably found out already. The correct way to store/read a dword would be:



Sven B

Mugen Wizardry
User Banned
Posted: 12th Dec 2010 20:38
Haha, it's not actually mine, it's http://axiaentertainment.com's plugin. But since I'm beta testing it (beta tests are closed beta btw), I get to use it

At any rate, thanks for the help!

I do appreciate 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: 12th Dec 2010 21:19
Can someone please help me fix this so it's rainbow color and uses only integers and strings?



Thanks! ^^

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: 13th Dec 2010 14:08
Quote: "Can someone please help me fix this so it's rainbow color and uses only integers and strings?"

Not quite sure what you mean... what exactly are you trying to do?

Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 13th Dec 2010 14:27
Is .XT a specific standard file format?

I'm not sure what's wrong with the last bit of code, can't see anything obvious - but I'm wondering why not just use bytes instead.

The only thing I can think of, is that the XT file is not the standard CRLF terminated format - maybe it uses tabs or commas to delimit.

Health, Ammo, and bacon and eggs!
Mugen Wizardry
User Banned
Posted: 13th Dec 2010 16:28
.Xt is a format created by the X Plugin. (http://axiaentertainment.com), which is currently being beta tested by me. Why I want to use a string instead of a byte is because I want people to be able to change the color of their own windows

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!
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 13th Dec 2010 16:43
Ahhh, thought that - you have to attach an example XT file - then someone will be able to make a loader function for it. But I'm sure it's just a format issue - as writing out numerics as strings is not something people tend to do, it's bloaty - I think the XT file is using a different format, otherwise your functions should work just fine.

Health, Ammo, and bacon and eggs!

Login to post a reply

Server time is: 2026-07-21 04:20:32
Your offset time is: 2026-07-21 04:20:32