[Ohrrpgce] SVN: teeemcee/5211 sliceedit: Draw a scroll bar (only if there's more than a screenful)

2012-06-08 Thread subversion
teeemcee 2012-06-08 02:09:33 -0700 (Fri, 08 Jun 2012) 68 sliceedit: Draw a scroll bar (only if there's more than a screenful) --- U wip/sliceedit.bas ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org

[Ohrrpgce] SVN: teeemcee/5212 Fix ${C#} codes in textboxes some more: now works with multiple copies o

2012-06-08 Thread subversion
teeemcee 2012-06-08 02:09:40 -0700 (Fri, 08 Jun 2012) 221 Fix ${C#} codes in textboxes some more: now works with multiple copies of the same hero Also, I improved the tests for hero name embedding to be self-testing. I don't like looking at screenshots to determine correctness. --- U

[Ohrrpgce] SVN: james/5213 Clarification to a note in the help for attack chaining which only appli

2012-06-08 Thread subversion
james 2012-06-08 09:33:30 -0700 (Fri, 08 Jun 2012) 97 Clarification to a note in the help for attack chaining which only applies for zero-delay chains --- U wip/ohrhelp/attack_chaining.txt ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org

[Ohrrpgce] [Bug 959] New: Random number generator falls into a repeatable pattern when loading from the same save

2012-06-08 Thread bugzilla-daemon
http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=959 Bug #: 959 Summary: Random number generator falls into a repeatable pattern when loading from the same save Classification: Unclassified Product: OHRRPGCE Version:

[Ohrrpgce] [Bug 959] Random number generator falls into a repeatable pattern after killing an enemy

2012-06-08 Thread bugzilla-daemon
http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=959 Bob the Hamster b...@hamsterrepublic.com changed: What|Removed |Added Summary|Random number generator

[Ohrrpgce] SVN: james/5214 Wrap all usages of RND

2012-06-08 Thread subversion
james 2012-06-08 12:33:13 -0700 (Fri, 08 Jun 2012) 269 Wrap all usages of RND INT(RND * n) is wrapped as randint(n) and other uses of RND are wrapped as rando() (See the Amazing Rando! Can You Guess the Number He Is Thinking Of!?) This is for debugging bug 959, but I think the randint() calls are

[Ohrrpgce] [Bug 959] Random number generator falls into a repeatable pattern after killing an enemy

2012-06-08 Thread bugzilla-daemon
http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=959 --- Comment #3 from Bob the Hamster b...@hamsterrepublic.com 2012-06-08 12:57:40 PDT --- Okay, I see where this is happening. frame_dissolve() has to use a very large number of RND calls, and the Mersenne Twister is too slow, so we have

[Ohrrpgce] [Bug 959] Random number generator falls into a repeatable pattern after killing an enemy

2012-06-08 Thread bugzilla-daemon
http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=959 --- Comment #2 from Bob the Hamster b...@hamsterrepublic.com 2012-06-08 11:09:50 PDT --- Created attachment 202 -- http://rpg.hamsterrepublic.com/bugzilla/attachment.cgi?id=202 This is my test file for reproducing this bug --

[Ohrrpgce] SVN: james/5215 Use an incredibly simple and crude alternate random number generator jus

2012-06-08 Thread subversion
james 2012-06-08 14:01:25 -0700 (Fri, 08 Jun 2012) 202 Use an incredibly simple and crude alternate random number generator just for frame_dissolve() This avoids messing up the state of the mersenne twister, and is good enough for the dissolve animation. --- U wip/allmodex.bas U

[Ohrrpgce] [Bug 959] Random number generator falls into a repeatable pattern after killing an enemy

2012-06-08 Thread bugzilla-daemon
http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=959 Bob the Hamster b...@hamsterrepublic.com changed: What|Removed |Added Status|NEW

Re: [Ohrrpgce] SVN: james/5215 Use an incredibly simple and crude alternate random number generator jus

2012-06-08 Thread Ralph Versteegen
On 9 June 2012 09:01, subvers...@hamsterrepublic.com wrote: james 2012-06-08 14:01:25 -0700 (Fri, 08 Jun 2012) 202 Use an incredibly simple and crude alternate random number generator just for frame_dissolve() This avoids messing up the state of the mersenne twister, and is good enough

Re: [Ohrrpgce] SVN: james/5215 Use an incredibly simple and crude alternate random number generator jus

2012-06-08 Thread James Paige
On Sat, Jun 09, 2012 at 10:36:46AM +1200, Ralph Versteegen wrote: On 9 June 2012 09:01, subvers...@hamsterrepublic.com wrote: james 2012-06-08 14:01:25 -0700 (Fri, 08 Jun 2012) 202 Use an incredibly simple and crude alternate random number generator just for frame_dissolve() This

[Ohrrpgce] [Bug 959] Random number generator falls into a repeatable pattern after killing an enemy

2012-06-08 Thread bugzilla-daemon
http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=959 Ralph Versteegen teeem...@gmail.com changed: What|Removed |Added CC|

[Ohrrpgce] [Bug 959] Random number generator falls into a repeatable pattern after killing an enemy

2012-06-08 Thread bugzilla-daemon
http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=959 --- Comment #6 from Bob the Hamster b...@hamsterrepublic.com 2012-06-08 16:20:27 PDT --- I wonder, would games that plotscript deterministic map generation using seed random be susceptible to this same pitfall? -- Configure bugmail:

[Ohrrpgce] SVN: teeemcee/5216 Clean up scatter dissolve animation code: just use an LCG PRNG. Why didn

2012-06-08 Thread subversion
teeemcee 2012-06-08 16:33:03 -0700 (Fri, 08 Jun 2012) 250 Clean up scatter dissolve animation code: just use an LCG PRNG. Why didn't I do that in the first place? Turns out that the 50% branch misprediction inside the inner loop (when halfway through a fade) is about twice as expensive as the

[Ohrrpgce] SVN: teeemcee/5217 Fix random() script function (r5214 broke ranges 231)

2012-06-08 Thread subversion
teeemcee 2012-06-08 16:33:05 -0700 (Fri, 08 Jun 2012) 55 Fix random() script function (r5214 broke ranges 231) --- U wip/hsinterpreter.bas ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org

[Ohrrpgce] [Bug 959] Random number generator falls into a repeatable pattern after killing an enemy

2012-06-08 Thread bugzilla-daemon
http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=959 --- Comment #7 from Ralph Versteegen teeem...@gmail.com 2012-06-08 16:34:21 PDT --- No, casting int - double - unsigned int preserves all bits. -- Configure bugmail: http://rpg.hamsterrepublic.com/bugzilla/userprefs.cgi?tab=email

Re: [Ohrrpgce] SVN: teeemcee/5217 Fix random() script function (r5214 broke ranges 231)

2012-06-08 Thread Ralph Versteegen
On 9 June 2012 11:33, subvers...@hamsterrepublic.com wrote: teeemcee 2012-06-08 16:33:05 -0700 (Fri, 08 Jun 2012) 55 Fix random() script function (r5214 broke ranges 231) *2^31 --- U   wip/hsinterpreter.bas ___ Ohrrpgce mailing list