General discussion on MAME, MARP, or whatever else that doesn't belong in any of the other forums
Moderators: mahlemiut , seymour , QRS
mahlemiut
Editor
Posts: 4191 Joined: Mon Feb 04, 2002 10:05 pm
Location: New Zealand
Contact:
Post
by mahlemiut » Mon Feb 03, 2003 10:13 pm
Here's a fix of my own that I'll add.
gaiden.c:
change line 275 to
Code: Select all
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON3 | IPF_PLAYER1 )
and line 283 to
Code: Select all
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON3 | IPF_PLAYER2 )
Now you can use the third button like in previous MAME versions. Who knows why that was changed in the first place.
- Barry Rodewald
MARP Assistant Web Maintainer
mahlemiut
Editor
Posts: 4191 Joined: Mon Feb 04, 2002 10:05 pm
Location: New Zealand
Contact:
Post
by mahlemiut » Tue Feb 04, 2003 3:45 am
- Barry Rodewald
MARP Assistant Web Maintainer
Blost
MARP Serf
Posts: 123 Joined: Mon Mar 04, 2002 4:37 pm
Location: France
Post
by Blost » Tue Feb 04, 2003 6:22 am
leet
kfx
MARPaltunnel Wrists
Posts: 462 Joined: Wed Mar 06, 2002 6:52 am
Location: Denmark
Contact:
Post
by kfx » Tue Feb 04, 2003 3:27 pm
The Ninja Gaiden missing at button was a mistake. This is taken from the Mame testers board :
Anyway, here is the fix ... In src/drivers/gaiden.c, change the following lines (under PORT_START /* Players Inputs */) :
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
to :
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON3 | IPF_PLAYER1 ) PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON3 | IPF_PLAYER2 )
And sorry again for the troubles ...
Steph from The Ultimate Patchers:
http://www.mameworld.net/cgi-bin/wwwthr ... #Post13646
Good think you fixed it, but did you have to beat me at the same time
storm
OS : winXP
cpu : P4 3gzh
mahlemiut
Editor
Posts: 4191 Joined: Mon Feb 04, 2002 10:05 pm
Location: New Zealand
Contact:
Post
by mahlemiut » Tue Feb 04, 2003 9:11 pm
Yep.
- Barry Rodewald
MARP Assistant Web Maintainer
Kale
MARP Seer
Posts: 655 Joined: Fri Mar 08, 2002 5:53 pm
Post
by Kale » Wed Feb 05, 2003 1:02 pm
mahlemiut wrote: Kale, I don't know what you're on about with system32.c, rand() is never used in the driver.
Here's the response...
Kale wrote:
*Under s32_read_rand
Code: Select all
static READ16_HANDLER(sys32_read_random)
{
// some totally bogus "random" algorithm
s32_rand = activecpu_gettotalcycles() % 0xf;
return s32_rand;
}
rand() isn't used,but the driver has random problems,most notably in Super Visual Football(team selection is always the same...)
Chad
Tournament Coordinator
Posts: 4463 Joined: Tue Mar 05, 2002 3:15 pm
Location: calif
Post
by Chad » Wed Feb 05, 2003 1:25 pm
you realize activecpu cycles will not be the same on all platforms and thus garuantee incompatibility between different oses...
-skito
Kale
MARP Seer
Posts: 655 Joined: Fri Mar 08, 2002 5:53 pm
Post
by Kale » Wed Feb 05, 2003 1:34 pm
Chad wrote: you realize activecpu cycles will not be the same on all platforms and thus garuantee incompatibility between different oses...
activecpu_gettotalcycles() is a number used by the CPU and it's modified at every instruction fetch/decode/execution cycle.It must be the same for every platform...
mahlemiut
Editor
Posts: 4191 Joined: Mon Feb 04, 2002 10:05 pm
Location: New Zealand
Contact:
Post
by mahlemiut » Wed Feb 05, 2003 5:08 pm
I would figure that it could be different for different CPU cores. Especially to those that may not use the MAME CPU cores in some cases (like MacMAME, although you can compile XMAME under MacOS X)
- Barry Rodewald
MARP Assistant Web Maintainer
Chad
Tournament Coordinator
Posts: 4463 Joined: Tue Mar 05, 2002 3:15 pm
Location: calif
Post
by Chad » Wed Feb 05, 2003 5:21 pm
I'm also thinking with instruction pipelining, the cycles can be different even on the same platform depending on how many other threads are running on the computer at the time. A good random number generator but not garuanteed to be the same every time, i still believe rand() is the same every time if it's seeded the same and called the same # of times because it just uses a % function and a static counter.
-skito
mahlemiut
Editor
Posts: 4191 Joined: Mon Feb 04, 2002 10:05 pm
Location: New Zealand
Contact:
Post
by mahlemiut » Wed Feb 05, 2003 6:15 pm
The next version of MAME should have a proper pseudo-random number generator function, aimed at getting correct playback. Hopefully, we won't need to worry about this anymore from then.
- Barry Rodewald
MARP Assistant Web Maintainer
Haze
MARP Knight
Posts: 350 Joined: Sat Mar 23, 2002 5:04 pm
Post
by Haze » Thu Feb 06, 2003 6:22 pm
the wizard fire 'fix' will break the continue feature of the game btw, not that it matters for marp recordings.