Mirage Source
Damn, screwed up (classes) - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Damn, screwed up (classes) (/showthread.php?tid=818)



Damn, screwed up (classes) - Coke - 10-03-2007

Well i finished adding constys 'stub' of a gender system, added visual sprites on character create with animation, then when i went to create a new character...

[Image: wtf.png]

It should say knight 4 times and all have the same sprite, instead its this randomness.. what on earth o.0

I checked and its nothing to do with me using a listbox instead of a combobox it gives the same results reguardless.

I swear i have had this exact problem in he past but i cant remember how i fixed it ~.~

Any help appreciated.


- Matt2 - 10-03-2007

Check Sub SendClasses

Maybe you're sending the wrong data...


- Coke - 10-03-2007

Its alright i fixed it, what had happened was client side:

Code:
For i = 0 To Max_Classes
Class(i).Name = Parse(n)

Class(i).HP = Val(Parse(n + 1))
Class(i).MP = Val(Parse(n + 2))
Class(i).SP = Val(Parse(n + 3))

Class(i).STR = Val(Parse(n + 4))
Class(i).DEF = Val(Parse(n + 5))
Class(i).SPEED = Val(Parse(n + 6))
Class(i).MAGI = Val(Parse(n + 7))
Class(i).MaleSprite = Val(Parse(n + 8))
Class(i).FemaleSprite = Val(Parse(n + 9))

n = n + 9

needed to be:

Code:
For i = 0 To Max_Classes
Class(i).Name = Parse(n)

Class(i).HP = Val(Parse(n + 1))
Class(i).MP = Val(Parse(n + 2))
Class(i).SP = Val(Parse(n + 3))

Class(i).STR = Val(Parse(n + 4))
Class(i).DEF = Val(Parse(n + 5))
Class(i).SPEED = Val(Parse(n + 6))
Class(i).MAGI = Val(Parse(n + 7))
Class(i).MaleSprite = Val(Parse(n + 8))
Class(i).FemaleSprite = Val(Parse(n + 9))

n = n + 10

Such a stupid mistake, learn from it kids Smile

Edit: for the record, it was because i was sending over the male and femalesprite numbers to the client for the animation on the newchar screen and forgot to tell the client the packet had one more piece on the end to read :]


- William - 11-03-2007

How the hell do you always find the most amazing fonts ever. Love the GUI!


- Coke - 11-03-2007

haha that gui sucks i am killing it xP

turning the 16x16 into 16 bit 32x32 because i am lame like that :<

messing around with map size atm ~.~

EDIT: Oh if you meant the menu gui, simplicity for the win xD

Not sure wtf i am going to do with ingame lol


- William - 11-03-2007

It's far from simple. Best I've seen so far.


- Coke - 11-03-2007

if only you had seen mirage realms, that thing was turning into a masterpiece lol..

anyway back to my 16 bit madness, i think this mapsize is alright? (ignore the map it was me pissing around with graphics and making a mess lol)

[Image: mapsize.png]

GUI is going to be a pain in the arse ~.~


- Robin - 11-03-2007

I love 16bit graphics as well ^_^


- William - 11-03-2007

You cant just decide the size of the picScreen. If your going to use the 16bit gfx, then I say go for a small screen.


- Coke - 11-03-2007

I'm using 16 bit, not 16x16, the above ss is the size of it =P

going to cry the ingame gui is impossible :


- William - 11-03-2007

Yeah I noticed when I checked the pic again and changed it. good luck.


- Coke - 11-03-2007

Infact, bollocks - i dont know what i'm going to do :/

I dont even know why i am bothering; decided to look over some of the graphics show off thingies here for any gui ideas omfg some of these games have immense features lol,

-pouts-

:?

Any ideas? lol, i did the menu and was like yay that looks cool :]

Now what =P


- William - 11-03-2007

A game is not all about features. I'd say making it look good is harder than adding features.


- Xlithan - 11-03-2007

I had that same problem once, hahaha, I felt an idiot afterwards.

Nice looking screeny though.


- William - 12-03-2007

GameBoy Wrote:I had that same problem once, hahaha, I felt an idiot afterwards.

Nice looking screeny though.
I think everybody have had that problem, ive had it some times.