Author Topic: Deluxe cheat format quick tutorial(plus ips loading off sd!) + cheat database  (Read 16713 times)

0 Members and 1 Guest are viewing this topic.

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2200
As most of you have noticed , you can now use GG/Hex cheats(=Action replay) and load IPS patches off SD with the new Deluxe menu,
so this thread is actually going to explain the script format , and everything you'll ever need to know in order to get your
cheats running.

...You can also use this thread to contribute your cheat scripts or ask any related questions...
Now lets just start ...  :D

Quick introduction tutorial on DX cheat format (plus ips instructions!)

Supported cheat types
1.Action replay (as long as they're not AR VM patch codes)
(Note : When entering the cheat , make sure that is properly formated to : address:data. The ':' delim is very important)

2.Game genie.
(Note : When entering the cheat , make sure that is properly formated to : address-data. The '-' delim is very important)

Limitations
1.Currently up to 1024 single cheat entries can be added
(But up to 12 addr:data pairs can be linked with 1 entry , so that's 24*12 => 288 cheats)
2.Long filenames are not supported.This is a limitation by the filesystem & the odd bug in the fpga core
(..but the coding machine is working on it)
LFN support has been implemented in v2.2DX
3.No flash support yet You can now use the new SuperMD plugin v2.2.0.0 which supports the deluxe cheat format : http://www.neoflash.com/forum/index.php/topic,6186.0.html
(A quick note : This format will only be supported by the opensource programmer.
The plugin + official programmer will also support this format but there won't
be support by the menu for this.The patching will be done just before the rom
is burned).

4.32chars maximum are allowed for descriptions

Writting scripts - Commands
At the moment there is only 1 command that you can use & and that is : AddCheat( args here ).

Writting scripts - Adding description
To add a description/name to a cheat or a cheat list , use the $Name variable ( $Name(32chars max description) ).

Writting scripts - Adding Code & lists
To add a code or code list to a cheat entry , use the $Code variable.
For single cheats , just do this : $Code(my hex or gg code here) , but if you want to define a code list , use the proper
delim character(comma => ",") for this porpuse , like this :  $Code(code1,code2,code3,code4..code12$).Its really easy
but don't forget that you are allowed to use maximum 12 list items for each single entry.

Writting scripts - Flags
The script supports (optional) flag types which even support inline
configruation even for "boot-and-patch" cheat mods without expecting input from the user.

The variable that you can use for flagging an entry , is the $Flag( flags here ).

The available flag types , are :
CT_NULL <-- internall type , not used at the moment

CT_MASTER <-- master code. If a cheat pair is flagged as CT_MASTER then it will be enabled by default.Use it for master codes.

CT_REGION <-- region code. If a cheat pair is flagged as CT_REGION then it will be enabled by default.Use it for region bypass codes.
(Note : if a region code exists in the list and is active , then the patcher will enable master codes if exist automatically even if they're disabled)

CT_SELF <-- Normal code.This is the default type. Even if you don't flag a cheat entry , it will be flagged automatically to this type
so for simple cheats you don't have to go through the flagging process.

CT_CHILD <-- A child type code.Will activate all parent codes(CT_MASTER) even if they are disabled.

Writting scripts -Example scripts

Ok enough "talking",now lets see how we can sum up all the above and create a simple script...

Here's a full example :
Code: [Select]
//Ghouls&ghosts DXCheat file (DaiMakai.cht)
AddCheat( $Name(Master code) , $Code(EABA-AA3Y) , $Flags(CT_MASTER) )
AddCheat( $Name(Inf lives) , $Code(A3WT-AA6G,9TZA-ABZY))
AddCheat( $Name(Each point is worth 10) , $Code(BJZA-AAF0,9TEA-BCKL))
AddCheat( $Name(Start on floating island) , $Code(TTEA-B93R,AEEA-AABN,9TEA-BCKL))
AddCheat( $Name(Start in windmall village) , $Code(TTEA-B93R,AAEA-ACBN,9TEA-BCKL))
AddCheat( $Name(Start in town of fire) , $Code(TTEA-B93R,AEEA-ACBN,9TEA-BCKL))
AddCheat( $Name(Start on ice slides and giant hands) , $Code(TTEA-B93R,AEEA-AGBN,9TEA-BCKL))
AddCheat( $Name(Start on dragons and demons) , $Code(TTEA-B93R,AAEA-AJBN,9TEA-BCKL))
AddCheat( $Name(Start on base of mstar ladder) , $Code(TTEA-B93R,AEEA-AJBN,9TEA-BCKL))

A good example on how to use cheat lists :

This :
Code: [Select]
//Rocket knight [U] region free code
AddCheat($Name(Master code), $Code(ETBT-AA4E) , $Flags(CT_MASTER) )
AddCheat($Name(Region free), $Code(A2BT-AA7W) , $Flags(CT_REGION) )

Could become just 1 entry :
Code: [Select]
//Rocket knight [U] region free code compiled in cheat list.
AddCheat($Name(Master code + region free), $Code(ETBT-AA4E,A2BT-AA7W) , $Flags(CT_MASTER) )

Another example on how to use the list :

This :
Code: [Select]
//Some game
AddCheat($Name(Master code), $Code(ETBT-AA4E) , $Flags(CT_MASTER) )
AddCheat($Name(Region free), $Code(A2BT-AA7W) , $Flags(CT_REGION) )
AddCheat($Name(Code 1), $Code(code here) )
AddCheat($Name(Code 2), $Code(code here) )
AddCheat($Name(Code 3), $Code(code here) )
AddCheat($Name(Code 4), $Code(code here) )
AddCheat($Name(Code 5), $Code(code here) )

Could become like this :
Code: [Select]
//Some game
AddCheat($Name(Master code), $Code(ETBT-AA4E) , $Flags(CT_MASTER) )
AddCheat($Name(Region free), $Code(A2BT-AA7W) , $Flags(CT_REGION) )
AddCheat($Name(Code 1,3,4,4,5), $Code(code here,code here,code here,code here,code here) )

Or even to this :
Code: [Select]
//Some game
AddCheat($Name(Bypass protection), $Code(ETBT-AA4E,A2BT-AA7W) , $Flags(CT_MASTER) )
AddCheat($Name(Code 1,3,4,4,5), $Code(code here,code here,code here,code here,code here) )


Using the scripts & patches
Okay , now that you're all set , you must do the final steps in order
to actually use your scripts!.

First make sure to install the latest DX version of the menu.
Once you do this , create the directories : "ips" & "cheats" in the root directory
of your SD card.Now just move your cheats & patches to the proper folder.

The names of the scripts or ips files must be : ROMNAME.cht for cheats and ROMNAME.ips for ips patches.
Don't forget that long filenames are not supported by the filesystem(&that odd bug!) at the moment so put short names.

Now your cheats or patches should be visible in the options menu.
(select an entry , press 'A' button after the header is displayed on screen then choose your cheats or ips files  and press 'C' to toggle
them and 'B' to run the game).


...And that's it.
If you have any questions , post them here.You can also use this thread to contribute your cheat scripts
or script mods.
« Last Edit: July 01, 2010, 04:06:16 AM by Conle »

Offline Dr.neo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3824
woooo it's great news!
conle you should post it to the homepage!  ~sm-33.gif~
In my world,have 0 and 1 only ......Matrix World......

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2200
woooo it's great news!
conle you should post it to the homepage!  ~sm-33.gif~

I have posted it few days ago : http://www.neoflash.com/go/index.php?option=com_content&task=view&id=347&Itemid=1 
Its  part of the Deluxe MD menu  :D

By the way , that's nothing compared to what's coming in the new deluxe md menu ;D

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Yeah, the next update will really make some news.  ~sm-42.gif~

Offline goldenegg

  • Jr. Member
  • **
  • Posts: 97
Yeah, the next update will really make some news.  ~sm-42.gif~

Do you realize how posts like these make it so much more painful to for the update?  ~sm-34.gif~

LOL


Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Do you realize how posts like these make it so much more painful to for the update?  ~sm-34.gif~

LOL

 >:D ::sm-02:: ::sm-05::

Well, Conle, madmonkey, and I are doing the (hopefully) final rounds of testing on it. We hope to have it up tomorrow. It would be out already, but one thing lead to another and we kept adding on features. Oh well, folks are bound to enjoy it.
 :D

Offline Dr.neo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3824
>:D ::sm-02:: ::sm-05::

Well, Conle, madmonkey, and I are doing the (hopefully) final rounds of testing on it. We hope to have it up tomorrow. It would be out already, but one thing lead to another and we kept adding on features. Oh well, folks are bound to enjoy it.
 :D

yeah, we have a great team indeed  ~sm-78.gif~.gif ~sm-78.gif~.gif ~sm-78.gif~.gif ~sm-78.gif~.gif ~sm-78.gif~.gif ~sm-78.gif~.gif
In my world,have 0 and 1 only ......Matrix World......

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2200
Guide has been updated a bit.
You can now also add cheats manually :


 :D

Offline obsidianzero

  • Newbie
  • *
  • Posts: 2
  • NEO newbie
Is it possible to add cheats if you have a 256mbit flash cart? or only with SD?  ???

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2200
Is it possible to add cheats if you have a 256mbit flash cart? or only with SD?  ???

Sorry , its an "exclusive" SD feature for now  because it requires alot of support code from the programmer and additional mode for that from the menu ~sm-40.gif~
I suggest to pick one Neo2 lite SD cart when you get the chance.There are many things that you can do from the SD menu(like auto save management , SRAM dump/restore functions for infinite amount of saves, extended menu loading from the SD plus many more) and soon or later you're going to need them..   ~sm-60.gif~.gif
« Last Edit: May 15, 2010, 12:23:55 AM by Conle »

Offline obsidianzero

  • Newbie
  • *
  • Posts: 2
  • NEO newbie
Thanks for the quick reply Conle,

Guess I'll have to pick one of those up sometime soon then heh

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2200
 :)

By the way , i've just added a new section in the guide which i forgot back then : "Supported cheat types"  ~sm-75.gif~.gif

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2200
Now SuperMD plugin supports the deluxe cheat format : http://www.neoflash.com/forum/index.php/topic,6186.0.html
Have fun  :)

ps - i will also add this feature in madmonkey's opensource programmer sometime  8)  :)

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
We need more cheats posted!
 ~sm-66.gif~.gif

Here's one to get started:

Code: [Select]
// Duke Nukem 3D DXCheat file
AddCheat( $Name(Protection from all attacks), $Code(AVHA-AA6A) )
AddCheat( $Name(Large Medikits 100 points), $Code(NT2T-AAGY) )
AddCheat( $Name(Infinite Shotgun ammo), $Code(AVBA-AA6R) )
AddCheat( $Name(Infinite Chaingun ammo), $Code(AVCA-AA76) )
AddCheat( $Name(Infinite Devastator ammo), $Code(AVDA-AA5L,AVDA-AA76) )
// The cheats below should be considered mutually exclusive
AddCheat( $Name(Start with 200 Pistol ammo), $Code(3A1A-AAHG) )
AddCheat( $Name(Start with Shotgun ammo), $Code(PA1A-BL1L) )
AddCheat( $Name(Start with Chaingun ammo), $Code(PJ1A-BL1L) )
AddCheat( $Name(Start with RPG ammo), $Code(PT1A-BL1L) )
AddCheat( $Name(Start with Devastator ammo), $Code(RA1A-BL1L) )

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2200
CW, you're playing DN with cheats?   ..I really hope you did it just for testing porpuses ..~sm-79.gif~.gif ~sm-80.gif~.gif
..Only kidding , obviously :D