cash limit

Oidche

Fledgling Freddie
Joined
Jun 22, 2004
Messages
41
Honza said:
Unsigned stuff - I guess we are being taken away from using it since unsigned integer types are being educated in next year under advanced programming techniques.
Truly with Delphi you can write whatever you wish, even though different languages are better suited for different purposes ((V)C(++) for games, Java for "run on all" etc. etc.) but please stop calling Delphi lame, it could badly suprise you in certain challenges. (I personally prefer C++ even though I am not able of creating much with it yet).

I didn't call Delphi 'lame', but Delphi (or Pascal) isn't really considered a 'serieus' language.

Oh, and if you don't need the speed of C++, I'd suggest going for C#. It's much easier and cleaner.

Honza said:
Definitely not when you use it only where it's needed. I am just scared of when someone cames with idea building up 3D engine or some other floating-point loading stuff built on 64bit real type (or yet worse not 32 times X multiplied size like real48).

Ofcourse, DAoC's monetary system has nothing to do with the 3D engine.

Honza said:
BTW what is best size of variable for 32 bit computer? 32 bits?

It depends on what kind of 32bit var. 32 bit ints are faster than 32 bit floats for example. P4s have 7 ALU's I believe.
 

sibanac

Fledgling Freddie
Joined
Dec 19, 2003
Messages
824
Oidche said:
I didn't call Delphi 'lame', but Delphi (or Pascal) isn't really considered a 'serieus' language.
tbh pascal/delphi is still one of the best languages to learn people to program cleanly, the compiler doesnt let you get away with much.
And I do know some big dev houses that use it

Oidche said:
Oh, and if you don't need the speed of C++, I'd suggest going for C#. It's much easier and cleaner.

ofcourse the other advantage is that C++ will be portable to any platform and C# you are pretty much stuck on one platform
 

Danya

Fledgling Freddie
Joined
Dec 23, 2003
Messages
2,465
Honza said:
aye, computer is not able of representing real number, cause you can't have infinite development of decimals (or wtf u call it in english)
BCD and similar allow for arbitrary precision (basically whatever you can fit in memory), that's usually sufficient. :p

Honza said:
Unsigned stuff - I guess we are being taken away from using it since unsigned integer types are being educated in next year under advanced programming techniques.
I'd hardly call unsigned numbers an advanced technique - they are very basic and should be taught at the same time as signed numbers.

Honza said:
Truly with Delphi you can write whatever you wish, even though different languages are better suited for different purposes ((V)C(++) for games, Java for "run on all" etc. etc.) but please stop calling Delphi lame, it could badly suprise you in certain challenges. (I personally prefer C++ even though I am not able of creating much with it yet).
You misunderstand me, I was calling your class lame, not Delphi. Delphi is a turing complete language and as such has similar power to any other turing complete language (C, java etc.). Delphi has certain desirable features for RAD and similar uses hence it's widespread use for in-house tooling.

Honza said:
Definitely not when you use it only where it's needed. I am just scared of when someone cames with idea building up 3D engine or some other floating-point loading stuff built on 64bit real type (or yet worse not 32 times X multiplied size like real48). There I guess would be noticeable difference.
64-bit floating point is a very common size for use actually. It's the default size of floating point on many CPUs (such as x86) and is the default size for floating point in C/C++. Many games prefer 32-bit floats for performance reasons, but that is the excpetion as floating point use goes, rather than the rule. Incidentally the speed difference is not that large, unless you're targetting a CPU without 64-bit float support.

Honza said:
BTW what is best size of variable for 32 bit computer? 32 bits?
Yes - 32-bit will generally be the fastest type on a 32-bit machine (unless you're reading a lot of them, then smaller is better as it reduces memory bandwidth).

Oidche said:
It depends on what kind of 32bit var. 32 bit ints are faster than 32 bit floats for example. P4s have 7 ALU's I believe
2 double-clocked ALUs (add/sub/logic) actually. Also 1 FPU and 1 integer shifter. Integer multiply and divide are done on the FPU.
 

Danya

Fledgling Freddie
Joined
Dec 23, 2003
Messages
2,465
sibanac said:
tbh pascal/delphi is still one of the best languages to learn people to program cleanly, the compiler doesnt let you get away with much.
And I do know some big dev houses that use it
Ada is arguably better for that. Though not much used except by the US DOD.
 

Honza

Fledgling Freddie
Joined
Jan 22, 2004
Messages
363
Danya said:
Ada is arguably better for that. Though not much used except by the US DOD.
What's US 'DOD'? Thought Ada is US military "pascal" ?
 

Klonk

One of Freddy's beloved
Joined
Jan 16, 2004
Messages
790
Thorarin said:
The cap per character is also set at 200p, or possibly 1 copper under it.
Technically a character could hold more like Honza said, but a lower limit that's easier to remember is being enforced.

It's possible there are some ways to acquire cash to allow you to go over this softcap, but it isn't advisable :)

Yup, I remember having 199p 999g etc on a char, and could not accept more cash on that char, had to put it on another. Kind of a luxury problem, but still :p
 

punchy

Fledgling Freddie
Joined
Jan 9, 2004
Messages
138
/em gets a giant key
/em locks the thread
/em walks away shaking head

:twak:

shame on you compsci type people. boring boring boring boring

the question was about currency caps in a game not the relative merits of various data types and languages ffs...
 

Falldorn

Fledgling Freddie
Joined
May 13, 2004
Messages
11
Klonk said:
Yup, I remember having 199p 999g etc on a char, and could not accept more cash on that char, had to put it on another. Kind of a luxury problem, but still :p
If it ever happens again, I'd be glad to help you carry/spend that extra cash :p
 

Danya

Fledgling Freddie
Joined
Dec 23, 2003
Messages
2,465
punchy said:
/em gets a giant key
/em locks the thread
/em walks away shaking head

:twak:

shame on you compsci type people. boring boring boring boring

the question was about currency caps in a game not the relative merits of various data types and languages ffs...
pwned ;)
 

Jayce

Fledgling Freddie
Joined
Jan 23, 2004
Messages
438
3 guys arguing about the 'best' way to do something that is already done by Mythic, just ask Mythic ?

Also rather then argue with someone about different ways of doing something without knowing each others POV or methods, you can only argue why you would do it your way and not the 'best' way really. Learn all you can about all the programming languages involved before telling each other that they are a 'noob' or 'lame'.

Quite silly really.
 

Revz

Fledgling Freddie
Joined
Jan 1, 2004
Messages
170
There is nothing to say that Mythic implemented it the "right" way or even the "best" way.
 

Danya

Fledgling Freddie
Joined
Dec 23, 2003
Messages
2,465
Jayce said:
Learn all you can about all the programming languages involved before telling each other that they are a 'noob' or 'lame'.
I have done... ;p
 

Painbringer

Fledgling Freddie
Joined
Jan 10, 2004
Messages
163
Get a life! you sad borrrrrring muppets! you are not making yourselves look good, WTF would anyone want 200p for anyway? :flame: :flame: :flame:
 

Gamah

Banned
Joined
Dec 22, 2003
Messages
13,042
Painbringer said:
Get a life! you sad borrrrrring muppets! you are not making yourselves look good, WTF would anyone want 200p for anyway? :flame: :flame: :flame:


Oh look everyone the "cool" guy has arrived to tell you how to live your life.. :touch:
 

Chilly

Balls of steel
Joined
Dec 22, 2003
Messages
9,047
Painbringer said:
Get a life! you sad borrrrrring muppets! you are not making yourselves look good, WTF would anyone want 200p for anyway? :flame: :flame: :flame:
to buy the 5 artifacts+scrolls you need for your wtfpwn template ofc noob""!!!!!!1oneee11!!
 

Danya

Fledgling Freddie
Joined
Dec 23, 2003
Messages
2,465
Painbringer said:
Get a life! you sad borrrrrring muppets! you are not making yourselves look good, WTF would anyone want 200p for anyway? :flame: :flame: :flame:
Being ML10 makes you look real cool. :p
 

Chrystina

Fledgling Freddie
Joined
Dec 23, 2003
Messages
822
Danya said:
Yes - 32-bit will generally be the fastest type on a 32-bit machine (unless you're reading a lot of them, then smaller is better as it reduces memory bandwidth).
rubbish ... on a 32bit CPU a 32bit data type is the fastest, no matter what (unless you have a wanky CPU with 32bit databus and 16bit addressbus, but then I wouldn't dare calling it a 32bit CPU tbh)... if you split it into 16bit chunks for whatever reason you will get twice the amount of memory accesses and hence slowing down your data transfer ... unless the CPU has some smart data-prefetch which would end up at apx. the same speed as a normal 32bit access ...
 

evzy

Can't get enough of FH
Joined
Jan 2, 2004
Messages
2,482
Thats the most pages I have ever read that said "blah blah blah blah" ....so anyways ... whats the most cash one char can have then? Would the fact that if you could put in in both pockets, double the amount you can carry?

Also if you are running some mad programs to sort that out then what is the probability of your local CM taking Visa anytime soon - would this alter the cap of cash carried due to the fact it would be a ickle diddy card as opposed to a big sack o gold coins?
 

Danya

Fledgling Freddie
Joined
Dec 23, 2003
Messages
2,465
Chrystina said:
rubbish ... on a 32bit CPU a 32bit data type is the fastest, no matter what (unless you have a wanky CPU with 32bit databus and 16bit addressbus, but then I wouldn't dare calling it a 32bit CPU tbh)... if you split it into 16bit chunks for whatever reason you will get twice the amount of memory accesses and hence slowing down your data transfer ... unless the CPU has some smart data-prefetch which would end up at apx. the same speed as a normal 32bit access ...
It's called caching... If you read data it cahces the whole cache line (32 or 64 bytes), so as long as you're reading within that cache line smaller is better. And yes most modern CPUs will prefetch data to the cache. :-o
 

punchy

Fledgling Freddie
Joined
Jan 9, 2004
Messages
138
Chrystina said:
rubbish ... on a 32bit CPU a 32bit data type is the fastest, blah blah blah computers blah blah data blah blah programming etc etc etc etc etc etc etc...

Noooooo chrys :< you must resist the urge! I did! o0

:bagpuss: tbh
 

Users who are viewing this thread

Top Bottom