Author Topic: Please teach and help me!  (Read 14986 times)

Offline XorXe

  • Newbies
  • *
  • Posts: 34
  • Karma: +0/-0
  • Learning 4 Masters ^^
Please teach and help me!
« on: March 23, 2005, 06:12:46 AM »
Hi guys im very noob in this world

I dont understand the structure of mame drivers for example in kof2003 driver

I dont know in what part of neogeo.c is the init section to add all text.

Please tell me what is init section to add all.

Offline FerchogtX

  • FBNeo Dev
  • ******
  • Posts: 375
  • Karma: +7/-0
  • FB Alpha Team ;)
    • FB Alpha Plus! Web Site
Please teach and help me!
« Reply #1 on: March 23, 2005, 11:01:19 PM »
You have 2 options here:
1.- The easieast way, add all of that (including the bankswitch code) in drivers/neogeo.c (dont forget to add also the string for kof2003 in driver.c)
2.- The normal way, add the bankswitch code in machine/neogeo.c including the kludge for kof2003 installing the bankswitch handlers, and then the rest of the driver can be pasted in drivers/neogeo.c

What i recommend? if you start getting familiar with mame src, use the easiest way, works equal and is less work for you
See ya!!!! :D

Good and evil co-exist because of the balance, lies are not part of it...

FB Alpha Plus! site infos updated, see the latest info clicking on my profile link...

Offline XorXe

  • Newbies
  • *
  • Posts: 34
  • Karma: +0/-0
  • Learning 4 Masters ^^
Please teach and help me!
« Reply #2 on: March 24, 2005, 03:52:16 AM »
Thanx now i know how to add all  :)

so i have other problem my compilation of mame32 plus¡ v94u4 dont work  :(

explain my problem:

In the main screen i select any rom, and appear the rom load screen, so dont start emulation :(

my first impression was that I needed the bios, nevertheless the bios are in the correct directory.

 :(  :(

for more help please look this video

(use save target as)

you need TSCC Codecs

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Please teach and help me!
« Reply #3 on: March 24, 2005, 05:04:11 AM »
Do you have these file in your mame32 plus directory.

IQ Forum Member

Offline XorXe

  • Newbies
  • *
  • Posts: 34
  • Karma: +0/-0
  • Learning 4 Masters ^^
Please teach and help me!
« Reply #4 on: March 24, 2005, 07:10:20 AM »
i dont have anyone of these files

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Please teach and help me!
« Reply #5 on: March 24, 2005, 07:50:51 AM »
well you need those . go to http://mameplus.emu-france.com/ and download Mame32 plus and copy the ctrlr folder with the files in it and put it in your mame plus directory
IQ Forum Member

Offline XorXe

  • Newbies
  • *
  • Posts: 34
  • Karma: +0/-0
  • Learning 4 Masters ^^
Please teach and help me!
« Reply #6 on: March 25, 2005, 01:20:21 AM »
Very much thanx  ;)
more help please

I dont play kof2003 whit unibios
how to add kof2003 unibios suport?

I use the same driver of iq_132 page

In mame32 plus it posible add kaillera support??
and edit the source for only cps1 cps2 and Neogeo??

and compress mameplib.dll??
my dll size is 40.5 MB :confused:

Offline neo04

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
Please teach and help me!
« Reply #7 on: March 25, 2005, 03:02:28 AM »
Quote
I dont play kof2003 whit unibios
how to add kof2003 unibios suport?
mame32 plus is already supports unibios... look in the src...

Quote
In mame32 plus it posible add kaillera support??
kaillera is only working with 0.84 & below (if im not mistaken)... kaillera src does not comply with the current mame src

Quote
and edit the source for only cps1 cps2 and Neogeo??
yes, u can.. edit the driver.c file

Quote
and compress mameplib.dll??
yes... & u could even compile a non-dll version too...

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Please teach and help me!
« Reply #8 on: March 25, 2005, 03:16:39 AM »
I have kaillera working on 89u1 There is another later build that supports this  But please be aware that these builds are not offical. Your best bet would be FBA for kaillera as its supported on that build .



you could make a mak file that goes in the src folder the driver c file will need to edited as well as the makerfile

Mine is like this

Code: [Select]

# uncomment the following lines to include a CPU core
CPUS+=Z80@
CPUS+=M68000@

# uncomment the following lines to include a sound core
SOUNDS+=CUSTOM@
SOUNDS+=AY8910@
SOUNDS+=YM2151@
SOUNDS+=YM2151_ALT@
SOUNDS+=YM2610@
SOUNDS+=YM2610B@
SOUNDS+=YM2612@
SOUNDS+=ADPCM@
SOUNDS+=OKIM6295@
SOUNDS+=QSOUND@

DRVLIBS = \
$(OBJ)/capcom.a $(OBJ)/neogeo.a \

$(OBJ)/capcom.a: \
$(OBJ)/vidhrdw/cps1.o $(OBJ)/drivers/cps1.o $(OBJ)/drivers/cps2.o \
$(OBJ)/machine/kabuki.o \

$(OBJ)/neogeo.a: \
$(OBJ)/machine/neogeo.o $(OBJ)/machine/pd4990a.o $(OBJ)/machine/neocrypt.o \
$(OBJ)/vidhrdw/neogeo.o $(OBJ)/drivers/neogeo.o \


COREOBJS += $(OBJ)/litedriver.o $(OBJ)/cheat.o

# generated text files
TEXTS += gamelist.txt

#gamelist.txt: $(EMULATOR)
# @echo Generating $@...
# @$(CURPATH)$(EMULATOR) -gamelist -noclones -sortname > docs/gamelist.txt
IQ Forum Member

Offline XorXe

  • Newbies
  • *
  • Posts: 34
  • Karma: +0/-0
  • Learning 4 Masters ^^
Please teach and help me!
« Reply #9 on: March 26, 2005, 06:40:35 AM »
I have new problem in Power instint matrimelee

i add all of this in src/drivers/neogeo.c

but i have bad grafix like this

i only changed name and crc of

266-m1d.bin  f692d84b original in iq_132 driver page

to

266-m1_decrypted.bin d2f3742d same like use kawaks 1.54

How to fix it?
« Last Edit: May 08, 2005, 05:00:50 AM by iq_132 »

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Please teach and help me!
« Reply #10 on: March 27, 2005, 06:11:24 AM »
I doubt this will make much differnce But try this anyway


Replace the DRIVER_INIT with DRIVER_INIT below

Which goes in SRC\DRIVERS\NEOGEO.C

Code: [Select]

DRIVER_INIT( matrim )
{
UINT8 *src = memory_region(REGION_CPU1)+0x100000;
UINT8 *dst = malloc(0x400000);
int i;
unsigned int sec[]={0x100000,0x280000,0x300000,0x180000,0x000000,[b]0x380000[/b],0x200000,0x080000};

if (dst)
{
memcpy(dst,src,0x400000);

for(i=0;i<8;++i)
{
memcpy(src+i*0x80000,dst+sec[i],0x80000);
}
free(dst);
}

neogeo_fix_bank_type = 2;
kof2000_neogeo_gfx_decrypt(0x6a);
matrim_vx_decrypt();  // I longer use this code
init_neogeo();
}
IQ Forum Member

Offline XorXe

  • Newbies
  • *
  • Posts: 34
  • Karma: +0/-0
  • Learning 4 Masters ^^
Please teach and help me!
« Reply #11 on: March 27, 2005, 06:26:12 AM »
i have this

Code: [Select]
Compiling src/drivers/neogeo.c...
src/drivers/neogeo.c: In function `init_matrim':
src/drivers/neogeo.c:9241: parse error before numeric constant
make: *** [obj/EK-MAMEliteen/drivers/neogeo.o] Error 1

this is 9241 line

  unsigned int sec[]={0x100000,0x280000,0x300000,0x180000,0x000000,0x3  80000,0x200000,0x080000};
« Last Edit: May 10, 2005, 01:12:42 PM by iq_132 »

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Replace it with this !
« Reply #12 on: March 27, 2005, 08:06:32 AM »
:)

unsigned int sec[]={0x100000,0x280000,0x300000,0x180000,0x000000,0x380000,0x200000,0x080000};


There is a bug on this forum that puts a space where there should not be .
If you have read other threads on this board you would of known this already .
Anyway I have fixed the post above .
IQ Forum Member

Offline XorXe

  • Newbies
  • *
  • Posts: 34
  • Karma: +0/-0
  • Learning 4 Masters ^^
Please teach and help me!
« Reply #13 on: March 27, 2005, 08:16:55 AM »
Quote from: James33
:)
unsigned int sec[]={0x100000,0x280000,0x300000,0x180000,0x000000,0x380000,0x200000,0x080000};


Yep i think same and fix it

but the game doesnt work i have the same bad gfx  :confused:

sorry for many questions, but I want to learn so much as you !!

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Please teach and help me!
« Reply #14 on: March 27, 2005, 08:26:50 AM »
Can you upload your NEOGEO.C from src\drivers\ somewhere That I can have a look at it or upload it to here .Once I see the problem I will reupload it So then you can see what has been fixed .
IQ Forum Member