Post Reply 
 
Thread Rating:
  • 24 Vote(s) - 3.38 Average
  • 1
  • 2
  • 3
  • 4
  • 5
n64input source code
Author Message
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #1
n64input source code

04-16-2012 11:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Iconoclast Offline
Super Moderator
******

Posts: 97
Joined: Mar 2008
Reputation: 5
Post: #2
RE: n64input source code

Thanks.

Since I am not sure whether to inline-comment onto your source code directly I figured maybe it would be better to keep posts to the forum here.

I thought you might want to know that, according to Nintendo, page 0 is reserved by the Controller Pak file system for basically just the device's serial identification number. As they put, each Controller Pak is assigned a unique serial ID, so when the operating system's SI interface accesses the controller RAM and sees that the serial number was changed since the last time the device was accessed, most Nintendo 64 games should consider this as an error, since mempak-switching is not supported by most games.

So your aValidCodes[] and aCode[] arrays are mostly based on particular Nintendo serial IDs assigned to someone's Controller Pak (particularly zilmar's, I think, since N-Rage copied those byte values off of Project64's mempak handle it would seem, while other emulators write their own mempak handle).

So as a small efficiency plus to handling mempak reformats, what you might do is either reverse your own Controller Pak device that you own to find what its serial number is (i.e., which bytes are stored in page 0) or, what I would do personally, is just set all the serial number bytes to NULL/0x00, since emulating the Controller Pak is just creating a virtual Controller Pak file that was not manufactured by Nintendo.
04-17-2012 03:25 AM
Find all posts by this user Quote this message in a reply
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #3
RE: n64input source code

Nice idea.
I hope to fix rumble support and stuff for Majora's Mask, then fix the issue you described, then this plugin is complete. Smile
04-17-2012 08:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Iconoclast Offline
Super Moderator
******

Posts: 97
Joined: Mar 2008
Reputation: 5
Post: #4
RE: n64input source code

Yeah looks pretty clean elsewhere, either that or just XInput API stuff I know nothing about lol.

I've been spending a lot of time on a Controller Pak memory handler application to support a bunch of stuff, so some technical questions about the page addressing purposes do arise. Things that are never really explained anywhere because Nintendo only documents what game programmers should know.

Anyway, what sorts of things in Majora's Mask were you hoping to fix? I had no idea that it had controller issues.
04-17-2012 09:18 AM
Find all posts by this user Quote this message in a reply
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #5
RE: n64input source code

Plugin seems to freeze on motion blurred mask intro.
04-17-2012 10:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,499
Joined: Mar 2008
Reputation: 15
Post: #6
RE: n64input source code

i used to think the controller would vibrate as the mask passes offscreen

04-17-2012 11:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #7
RE: n64input source code

Do any plugins rumble during that sequence?
04-17-2012 03:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,499
Joined: Mar 2008
Reputation: 15
Post: #8
RE: n64input source code

nrage doesn't

i'll have to test my rumblepak on the console

04-17-2012 06:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ExtremeDude2 Offline
yo
**

Posts: 31
Joined: Jun 2011
Reputation: 5
Post: #9
RE: n64input source code

(04-17-2012 06:06 PM)Squall Leonhart Wrote:  i'll have to test my rumblepak on the console

o nice Big Grin

"The question isn't can it be done, but are you willing to do it." - Me Smile

[Image: 403569.jpg]
04-17-2012 10:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Iconoclast Offline
Super Moderator
******

Posts: 97
Joined: Mar 2008
Reputation: 5
Post: #10
RE: n64input source code

(04-17-2012 11:26 AM)Squall Leonhart Wrote:  i used to think the controller would vibrate as the mask passes offscreen

Well, it's the only relative theory I could think of.

For as long as I've loved that game I have never known it to use the rumble pak, but I really don't see why mudlord's plugin could be the source of freezing at a part of the game where button strokes are not necessarily sent (the spinning mask animation).

This is certainly not being specific, but who knows; maybe there is some fault in the plugin. I know my little 4-KB keyboard-only plugin had no stability issues with this game XD.
04-18-2012 12:48 AM
Find all posts by this user Quote this message in a reply
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #11
RE: n64input source code

iconoclast: still got the source?
good because i removed it from github because of no response.
05-17-2012 07:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #12
RE: n64input source code

started working on this since EmuCR started compiling the shit this time.
02-23-2013 08:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: