Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: I'll paypal you to help me pls  (Read 2181 times)

0 Members and 1 Guest are viewing this topic.

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
I'll paypal you to help me pls
« on: December 05, 2012, 12:14:41 am »
I dont know why but i cannot figure out how to compile friggen mame! I want the no nag screen, Z axis and save/load to 1 button (dont want to press 1)

If someone could go through the steps that would be even better.  And yes it will be more than $5  :cheers:

gamepimp

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 462
  • Last login:April 06, 2025, 08:48:37 pm
Re: I'll paypal you to help me pls
« Reply #1 on: December 05, 2012, 08:04:05 am »
I compile MAME w/ the no-nag/hi score patch using Headkaze's utility (MAME Compiler) all the time. But I'm not familiar w/ those other functions. Do u hv patches for those as well?

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: I'll paypal you to help me pls
« Reply #2 on: December 05, 2012, 07:03:06 pm »
no i dont.  I have no idea where to find them.  I believe they are .diff files.  I will try his utility, thx.

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: I'll paypal you to help me pls
« Reply #3 on: December 05, 2012, 09:05:28 pm »
i think its 3rd post from the bottom of this link.  Would that be the .diff im looking for?

http://forum.arcadecontrols.com/index.php?topic=33233.0

gamepimp

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 462
  • Last login:April 06, 2025, 08:48:37 pm
Re: I'll paypal you to help me pls
« Reply #4 on: December 05, 2012, 09:59:46 pm »
Yes. Mame Compiler would add that chunk of code to the source and then would compile the source into an executable.

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: I'll paypal you to help me pls
« Reply #5 on: December 05, 2012, 10:36:25 pm »
Weeeeeeel, i managed to compile mame but none of the extras were added.  I applied the patches but they didnt seem to hold :(  It says all hunks ignored, skip patch (y).   Here is what i am trying to add.  first file:  Its supposed to make it when you save/load, you just press 1 button and not have to press "1" after for a save slot.


diff -c -r ..\/src/usrintrf.c ./src/usrintrf.c
*** ..\/src/usrintrf.c   Tue Nov 23 18:05:00 2004
--- ./src/usrintrf.c   Thu Dec 16 22:33:16 2004
***************
*** 3940,3946 ****
        if (input_ui_pressed(IPT_UI_CANCEL))
           break;
 
!       code = code_read_async();
        if (code != CODE_NONE)
        {
           if (code >= KEYCODE_A && code <= KEYCODE_Z)
--- 3940,3947 ----
        if (input_ui_pressed(IPT_UI_CANCEL))
           break;
 
!       //JOEY
!        code = KEYCODE_A; //code_read_async();
        if (code != CODE_NONE)
        {
           if (code >= KEYCODE_A && code <= KEYCODE_Z)
***************
*** 4153,4166 ****
--- 4154,4173 ----
        if (single_step == 0)
           mame_pause(1);
 
+       // JOEY ADD PAUSE text
+       ui_text(bitmap, "GAME PAUSED", 100, 100);
+
        while (!input_ui_pressed(IPT_UI_PAUSE))
        {
+
           profiler_mark(PROFILER_VIDEO);
           if (osd_skip_this_frame() == 0)
           {
              /* keep calling vh_screenrefresh() while paused so we can stuff */
              /* debug code in there */
              draw_screen();
+             // JOEY ADD PAUSE text
+             ui_text(bitmap, "GAME PAUSED", 100, 100);
           }
           profiler_mark(PROFILER_END);
 
***************
*** 4206,4211 ****
--- 4213,4221 ----
              }
           if (osd_selected != 0) osd_selected = on_screen_display(bitmap, osd_selected);
 
+          // JOEY ADD PAUSE text
+ //         ui_text(bitmap, "GAME PAUSED", 100, 100);
+
           if (options.cheat) DisplayWatches(bitmap);
 
           /* show popup message if any */
***************
*** 4220,4225 ****
--- 4230,4238 ----
           update_video_and_audio();
           reset_partial_updates();
 
+          // JOEY ADD PAUSE text
+ //         ui_text(bitmap, "GAME PAUSED", 100, 100);
+
  #ifdef MESS
           if (!setup_selected && mess_pause_for_ui)
           {
***************
*** 4238,4243 ****
--- 4251,4258 ----
        }
 
        schedule_full_refresh();
+       // JOEY ADD PAUSE text
+       ui_text(bitmap, "GAME PAUSED", 100, 100);
     }
 
  #if defined(__sgi) && !defined(MESS)


The 2nd one is to support "Z" axis for my spinner since trackball is using X and Y:


diff -Nru o3/src/osd/windows/input.c 3/src/osd/windows/input.c
--- o3/src/osd/windows/input.c   2010-02-13 09:30:18.000000000 -0800
+++ 3/src/osd/windows/input.c   2010-02-13 10:33:25.000000000 -0800
@@ -2098,7 +2098,7 @@
 
             // update zaxis
             if (data->usButtonFlags & RI_MOUSE_WHEEL)
-               devinfo->mouse.raw_z += (INT16)data->usButtonData * INPUT_RELATIVE_PER_PIXEL;
+               devinfo->mouse.raw_z += (INT)((INT16)data->usButtonData * 4.267);
          }
 
          // otherwise, update it as a lightgun


« Last Edit: December 05, 2012, 11:45:53 pm by equlizer »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Today at 09:24:18 am
  • ...
Re: I'll paypal you to help me pls
« Reply #6 on: December 06, 2012, 10:17:01 am »
A diff file made for an older version of MAME won't always work on the most recent version because the location of the lines has changed due to code being added or removed.  Unless the code has changed a lot, the changes can still be applied manually.

Usually you just find the right section of the code, then copy and past the parts with the + in front of them over top the parts with the - in front of them.
I can't code whatsoever, but I do this to fix the gear shift on driving games every time I update my driving cab (MAME has it as a toggle which doesn't work with a real shifter).

The z-axis one looks easy, but the 1 button save looks a bit over my head.

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: I'll paypal you to help me pls
« Reply #7 on: December 06, 2012, 07:54:38 pm »
This is totally over my head  :banghead:  so at least you have some knowledge of this.  Do you have an example?  Ive pm'd headkaze and awaiting reply.