SDL type INT

General debates and discussion about the Guild of Writers and Age creation

SDL type INT

Postby tachzusamm » Mon Oct 03, 2011 8:42 pm

Does it store an integer of 16 bit, or 32 bit?
User avatar
tachzusamm
 
Posts: 575
Joined: Thu May 29, 2008 2:03 am
Location: Germany

Re: SDL type INT

Postby diafero » Tue Oct 04, 2011 2:08 am

The on-wire UU format has 32bit for an INT value in SDL. There's also SHORT (16bit) and BYTE (8bit).
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2966
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: SDL type INT

Postby tachzusamm » Tue Oct 04, 2011 5:11 am

That helps, thanks.
And good to know that there's a SHORT available too.
User avatar
tachzusamm
 
Posts: 575
Joined: Thu May 29, 2008 2:03 am
Location: Germany

Re: SDL type INT

Postby D'Lanor » Tue Oct 04, 2011 6:15 am

There is also DOUBLE (64bit) but I don't think it was ever used.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: SDL type INT

Postby diafero » Tue Oct 04, 2011 9:28 am

I never saw that before, it's not even supported by Alcugs... ;-)
It also sounds more like a floating-point value? (FLOAT is supported by Alcugs, but that's 32bit)
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2966
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: SDL type INT

Postby D'Lanor » Tue Oct 04, 2011 1:37 pm

PtSDLVarType.kDouble is exists in PlasmaConstants.py and it is referenced in xPsnlVaultSDL.py (even though Relto does not use that type). The 64bit was my guess because that's what double usually means.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: SDL type INT

Postby Tsar Hoikas » Tue Oct 04, 2011 2:55 pm

it's a 64 bit float... If we put together what you're both saying (and I think that's what you're meaning).

http://en.wikipedia.org/wiki/Double_pre ... int_format

There are also more fun SDL types like vectors, quats, PLKEYS, and creatables... All of which make writing SDL binary code a pain ;)
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: SDL type INT

Postby tachzusamm » Tue Oct 04, 2011 3:53 pm

Vectors as well? And did they ever make it into an existing SDL file?

Sometimes I think Cyan has created an engine too complex for their own needs... well, gives me an idea about the visions they had. 8-)
User avatar
tachzusamm
 
Posts: 575
Joined: Thu May 29, 2008 2:03 am
Location: Germany

Re: SDL type INT

Postby Chacal » Tue Oct 04, 2011 4:05 pm

I guess anyone going through the trouble of writing an engine has hope of licensing it some day.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2508
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: SDL type INT

Postby Tsar Hoikas » Tue Oct 04, 2011 5:18 pm

tachzusamm wrote:Vectors as well? And did they ever make it into an existing SDL file?

Sometimes I think Cyan has created an engine too complex for their own needs... well, gives me an idea about the visions they had. 8-)


When an avatar changes position... SDL update. Check out the SDL files that aren't named after ages... Interesting reads ;)
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 18 guests