Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 11:20 pm

All times are UTC




Post new topic Reply to topic  [ 226 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10  Next
Author Message
 Post subject: Signs to Binary
PostPosted: Mon Dec 25, 2006 2:00 am 
Offline
Banned
User avatar

Joined: Mon Jun 05, 2006 9:22 pm
Posts: 394
Location: USA
After adding in Signs and converting them to binary I am having a problem:

Since all of the lines and names and such are strings, every time the sign sends itself it sends everything as the same string, so the sign DOES show the name and the LAST part of the line, but how do I tell the server how to differentiate between the lines when sending the packets to edit signs and show them?

I have it setup like this:

Name then the Background Type (either a 1 or a 2), then Line 1, the Line 2, Then Line 3. Line 1 2 and 3 are 50 character long strings, as well as the name. Background Type is a 1 character string, either a 1 or a 2.

So its Name-----0--------Line1------Line2-------Line3

Any ideas? Dave?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 25, 2006 3:59 am 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
When saving strings, you need two Put statements.

Put #f, , Len(string)
Put #f, , String


Then when you load it, you use this

Dim StringVariable as string

Get #f, , strLen
StringVariable = Space$(strLen)
Get #f , , StringVariable

Doing this makes it automatically take ou the right amount of bytes for the string.

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 25, 2006 4:31 am 
Offline
Banned
User avatar

Joined: Mon Jun 05, 2006 9:22 pm
Posts: 394
Location: USA
That makes no sense to me. lol. Do you have a messenger anymore Dave?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 226 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group