- This topic has 38 replies, 5 voices, and was last updated 10 years, 8 months ago by Lord Yuan Shu.
-
AuthorPosts
-
July 5, 2012 at 5:41 pm #41571sonic.penguinModerator
The values are reversed like this also for prices of items as well which appear just before the item name. Also I believe that with tactic damage values the high value comes 2nd also.
July 6, 2012 at 12:52 am #41572DragonAtmaModeratorThere are two ways of writing numbers; one (little-endian) starts with the smallest digit first, the other (big-endian) with the largest digit first. It's just how today (July 5th, 2012) can be written as 7/5/12, 5/7/12, or 12/7/5 depending on who you ask!
July 6, 2012 at 9:40 am #41573MeteorStrikeParticipantYep, what they said. Most games use the small-to-big number system, whichever that one happens to be…
I remember the first time our assembly prof in college explained little endian vs big endian. I thought he had said "Little Indian, Big Indian" which made me think of some westerner sitcom where the "Big Indian" would be the chief, and the "Little Indian" the one always getting shot by the cowboys… And then I thought… "is that a politically-correct term to use in the world of programming? Oh well… I guess it's not as bad as declaring a friend class and having access to their private parts… friends with benefits, anyone?"
July 7, 2012 at 2:18 am #41574DragonAtmaModeratorOn a late note, the gender check is bugging me, even though it shouldn't. It just feels…. inefficient. It should be possible to improve it with something like this pseudocode:
If ((88080 + IndexOfOfficerBeingChecked) = 01 {
  Goto SpotWhereFemaleCodingIs
Else
  Goto SpotWhereMaleCodingIs
}
Then you just add a gender chart from 88080 to 880BF.
July 9, 2012 at 1:43 am #41576MeteorStrikeParticipantYou don't even need to do that. You can just use bits instead:
Code:const int UNIT_COUNT = 80; // How many?
byte genders [(UNIT_COUNT + 7) / 8]; // Probably like 10 bytes depending on unit countIf ( ( genders[unit_id / 8] & ( 1 << ( unit_id & 7 ) ) ) == 1 )
// Male
Else
// FemaleBut since there are only 4 females, it's even more efficient to just have an array of 4 bytes instead of 10.
Forget about things "bothering you" due to crappy code. If that's how you're going to start thinking, then do NOT try to hack Uncharted Waters for the NES under any circumstances! You might go insane!
July 9, 2012 at 1:50 am #41577DragonAtmaModeratorDon't worry, I'm not planning to.
It's just…. one day we may wind up making a gemfire editor, and if that happens, it'd be nice to change the number of females. And, of course, my gemfire mod originally had 7 females not 4…
July 19, 2013 at 4:28 am #41593Lord Yuan ShuKeymasterlol what the fuck…how were there so many spam messages on this thread.
Must be littered all over the forum…
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hackingJuly 19, 2013 at 6:04 am #41594DragonAtmaModeratorBEEP BEEP BLIP BEEP
ALL GORDON'S FAULT!
…seriously though, it's good to see that the spam has been vanquished. Someone should go remove all the spam tags scattered across Conewalker, though….
July 19, 2013 at 3:39 pm #41595Lord Yuan ShuKeymasterThe spam has been vanquished here, certainly…I shudder to think of how many other old threads have succumbed to this. Spam tags are annoying too of course.
Welcome to Lord Yuan Shu Walkthrough Guides ·
Huo Hu's Adventure started Destiny of an Emperor hacking -
AuthorPosts
- You must be logged in to reply to this topic.