Ambrosia Software Web Board: BUG FOUND - in Cythera - Ambrosia Software Web Board

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

BUG FOUND - in Cythera

#1 User is offline   Mr.brian 

  • Member
  • Group: Members
  • Posts: 59
  • Joined: 16-August 00

Posted 07 July 2001 - 07:53 AM

A new bug has been found,
Improving your body points in Cythera can be important, becuse it increases your heath points, how much you can carry, and more. If you use a cheating program like pandora's box, or Ace or you just train with Alarlic as you improve body your health starts to improve, if your health gets to the max (255) you can still train for health but the max health won't go over 255 it will start over around 13. This bug also go's for magic, if you improve to much in mind it will also start over.


You can still get a full version of Pandor's box, Posted Image
for more information at [url="http://"mailto:brian6@bellatlantic.net"]mailto:brian6@bellatlantic.net[/url]brian6@bellatlantic.net


------------------
Ring Of Recharge
My Site [url="http://"http://evilzz.net/mrbrian/"]http://evilzz.net/mrbrian/[/url]
Sign up for the Cythera Webring at:Yahoo Webring

#2 User is offline   Talos 

  • Member
  • PipPipPipPip
  • Group: Members
  • Posts: 1,468
  • Joined: 19-June 00

Posted 07 July 2001 - 09:11 AM

This is because no one playing Cythera honetly would get that much health. The reason this bug happens is because an "unsigned char" type of variable is being used. The maximum value it can store is 255 (since it also has 0). Therefore, once it goes past 255 it "wraps" back to 0.

------------------
Bronze: the other gold metal.  | |  Cretan Bronze Robot: Bronze Trance Robot
Bacchus Publishing: [url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/show.pl?product=evo&category=guides&display=date&file=ChroniclesByJake101.sit.hqx"]Chronicles by Jake101: the unposted chapters[/url], [url="http://"http://users.erols.com/alkrauss/Once_Again.html"]Once Again: on the web.[/url]
Bacchus Freeware: Olympus Wars, a plugin for EV:N.
Bronze: the other gold metal.   ||   And so the space toaster hardened the outer layers of the doughy, ooey-gooey ancient Earth...
Bacchus Publishing: [url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/show.pl?product=evo&category=guides&display=date&file=ChroniclesByJake101.sit.hqx"]Chronicles by Jake101: the unposted chapters[/url].

#3 User is offline   Z 

  • Member
  • Group: Members
  • Posts: 27
  • Joined: 21-October 01

Posted 17 October 2001 - 11:57 AM

Quote

Originally posted by Talos:
This bug happens is because an "unsigned char" type of variable is being used.



I think you mean an "unsigned int" or an "unsigned short"

#4 User is offline   Tycho Maudd 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 407
  • Joined: 14-October 00

Posted 17 October 2001 - 12:32 PM

its an unsigned int, a short is can go up to 32,767

------------------
How to use a tooth pick: Hold stick near center of its length. Moisten pointed end in mouth. Insert in tooth space, bkunt end next to gun. use gentle in-out motion.
This message brought to you by the Campaign to Save the Humans. We bid you farewell
How to use a tooth pick: Hold stick near center of its length. Moisten pointed end in mouth. Insert in tooth space, blunt end next to gum. Use gentle in-out motion.

This message brought to you by the Campaign to Save the Humans. We bid you farewell

#5 User is offline   Bryce 

  • Open-Source Fan
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,714
  • Joined: 08-August 01
  • Gender:Male
  • Location:California

Posted 17 October 2001 - 05:48 PM

Yeah, it's probobly an unsigned int, which can go up to 255. A regular, signed int can only go from -128 to 128. Talos, their are great C programing classes at [url="http://"http://www.codewarrioru.com"]www.codewarrioru.com[/url]

------------------
It needs more detail.
(Famous Last Words #175)
"Programming is an art form that fights back."

www.magnatune.com - Magnatune: Internet record label. Wide selection of music in MP3, flac, ogg: no DRM. Legal. Artists get 50% of your money.

#6 User is offline   Bryce 

  • Open-Source Fan
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,714
  • Joined: 08-August 01
  • Gender:Male
  • Location:California

Posted 19 October 2001 - 04:34 PM

Wait - we're all wrong. A signed short goes from -32768 to 32768. A signed int is, in C, the mostly the same. - Tycho and Myself are wrong.

No common C data type other than char is limited to one byte (0-255).
So, Talos is right, eh? Well, I don't know, maybe. char is normaly used to store a single letter, but maybe it can be used for other things, I don't know. I do know that in Cythera's saved-game format, you can only give yourself 255 obsidian at a time with HexEdit. (A data-fork editor, not a prissy luser-proof saved game editor!)
-

------------------
It needs more detail.
(Famous Last Words #175)
"Programming is an art form that fights back."

www.magnatune.com - Magnatune: Internet record label. Wide selection of music in MP3, flac, ogg: no DRM. Legal. Artists get 50% of your money.

#7 User is offline   theGlueBubble 

  • Moderator
  • PipPipPipPipPipPip
  • Group: Moderators
  • Posts: 4,235
  • Joined: 10-October 00

Posted 19 October 2001 - 06:29 PM

Chars are only represented as chars -- underneath, they're numbers.

For example,

int x = 2;
char z = 'D';
x = z + x;

Is completely legal -- if I wanted to bother, I could find out what number represents 'D' and then find the sum...but I don't want to bother! Posted Image

------------------
Fortress of Die Nacht: An upcoming game from Aviary Productions.
[url="http://"http://www.aviaryproductions.f2s.com/downloads.html"]Go take a look![/url]
Since 2000.

#8 User is offline   Avatara 

  • Guardian
  • PipPipPipPipPipPipPip
  • Group: Moderators
  • Posts: 12,036
  • Joined: 05-July 00
  • Gender:Male

Posted 19 October 2001 - 07:33 PM

Quote

Originally posted by Bryce:
No common C data type other than char is limited to one byte (0-255).


It could be an array of 255 slots, though I doubt it. And GB, you can add ints to chars? Or would it add the ASCII value to the value of the int?

------------------
"I'm a controversial figure. My friends either dislike me or hate me."
"Sometimes I get confused whether I'm posting on ATT or in the War Room. But then I remind myself: If it's moderators acting scatter-brained and foolish, then it's the War Room*.

*Unless it's Avatara, of course."
-- From the memoirs of Sundered Angel

#9 User is offline   Firebird 

  • Member
  • PipPipPipPip
  • Group: Members
  • Posts: 1,160
  • Joined: 21-March 99
  • Location:Locari, Levo

Posted 19 October 2001 - 09:29 PM

Quote

Originally posted by Avatara:
And GB, you can add ints to chars?  Or would it add the ASCII value to the value of the int?



Well, in the particular case he mentioned, since x is an int, what he wrote will add the ASCII value of 'D' to x.

------------------
Mike Lee (Firebird)
Mike Lee (Firebird)

Visit Cymltaneous Solutions: [url="http://"http://cs.paching.com/"]http://cs.paching.com/[/url]
(hosted by [url="http://"http://www.evula.org"]evula.org[/url])

#10 User is offline   Macintosh Man 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 723
  • Joined: 15-January 00

Posted 25 October 2001 - 08:10 PM

Chars can store numbers. I'm taking a C++ class right now and I am learning ALL about that.

------------------
Long Live Apple! Long Live the Mac!
Praise <First Thought//Giver-of-Will>!

#11 User is offline   Avatara 

  • Guardian
  • PipPipPipPipPipPipPip
  • Group: Moderators
  • Posts: 12,036
  • Joined: 05-July 00
  • Gender:Male

Posted 25 October 2001 - 08:16 PM

Quote

Originally posted by Macintosh Man:
Chars can store numbers. I'm taking a C++ class right now and I am learning ALL about that.


Heh, we skipped that part (or I missed it last year) and went ahead to fiddle with 2D arrays...hence the question.

But, that would make sense, '3' is a character after all...

------------------
"I'm a controversial figure. My friends either dislike me or hate me."
"Sometimes I get confused whether I'm posting on ATT or in the War Room. But then I remind myself: If it's moderators acting scatter-brained and foolish, then it's the War Room*.

*Unless it's Avatara, of course."
-- From the memoirs of Sundered Angel

#12 User is offline   Slayer 

  • EX-Moderator
  • PipPipPipPip
  • Group: Members
  • Posts: 1,109
  • Joined: 13-September 99

Posted 25 October 2001 - 09:24 PM

In C-
char: -128 to 127
unsigned char: 0 to 255
short int: -32768 to 32767
unsigned short int: 0 to 65535
long int: -2^31 to 2^31 - 1
unsigned long int: 0 to 2^32 - 1
int: depends on system, never longer than long int, never shorter than short int

As a computer science major, I work with C on a daily basis during the week. So Talos was right in the first place, an unsigned char is being used.

------------------
Slayer's guide to Cythera:
[url="http://"http://www.macclassics.com/cythera/cythera.htm"]http://www.macclassi...era/cythera.htm[/url]
Slayer's guide to Cythera:
http://russell.stanb...ide/cythera.htm

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users