Page 1 of 3

[REL]Caspers 2012 Custom Content (Version 0.2)

PostPosted: 26 Jul 2011, 02:41
by Casper7526
Community:
If you guys want/need/request/help blah blah anything you can post here to help or lead me on is in great appreciation.



RELEASE INFO V0.2 (July 26th 3:00PM(EST))
STABILITY: Tested on my Machine no problem, please report if you have any issues.
http://www.mediafire.com/?fs44b56uk53v8v5
2 Files:
Cracked Exe
(SKIDROW EXE BUT CRACKED TO ALLOW CUSTOM DLC)
Data_DLC_1111.wad
#1: Unlocks the 3 DLC1 Decks
#2: Adds a Custom Deck + Custom Card to that Deck for Example Purposes
#3: Unlocks All the Player Avatars
Install Notes:
Backup your save game (Located in AppData/Local/Skidrow/49470)
Getting different versions of 1111 with different decks can potentially cause your game to not work unless you delete your profile.
DO NOT USE THIS ON THE STEAM VERSION YOU WILL GET BANNED MOST LIKELY

For Custom Cards, just use my example and you should be fine.
For Custom Decks, make sure to make your UID +1 (1001 would be the next deck)
Also add the data in the DATA_PC/REQUIRED/CONFIG/APPLINK.txt files (You'll see how and where)

Custom Functions should be applicable if you simply code the function then encrypt it and add it onto the end of a function file.

Re: Casper's DOTP2012 Progression(Done with Custom Decks/Car

PostPosted: 26 Jul 2011, 05:32
by ArgyleEyes
#3 - CUSTOM DECK (50%) (So far I can create them just not use them)
yup. ill just hide here till someone spills that info XD
nice to see someone else posting there tinkering fun though. gl =D>

*btw .lol = lolcat coding? wow this game has some really simple languages... i think those are mainly just source files? (reference pieces) *shrugs* haven't really messed with them much though.
(just getting into messing with expansion symbols and card frames till i find out where created decks are locked from.)

Re: Casper's DOTP2012 Progression(Done with Custom Decks/Car

PostPosted: 26 Jul 2011, 06:39
by Casper7526
Heh, check my edit, thats all done. and .LOL is just a encrypted .lua file that they made so that we would get a good laugh when we saw it.

Anyway,

First Release in Original Post! WOOT

Re: [REL]Casper's 2012 Progression(Done with Custom Decks/Ca

PostPosted: 26 Jul 2011, 07:46
by ArgyleEyes
haha oh ok cool.
and awesomeness this is what i came here for. *fist pump* progress.
thanks.

[Works]
but the decks showed up as locked for me? ...hmm


*btw idk how cool "they" are with linkage to certain stuffs.... >_>
greatly appreciated by me none the less. XD

Re: [REL]Casper's 2012 Progression(Done with Custom Decks/Ca

PostPosted: 26 Jul 2011, 11:07
by r3aper
Casper7526 wrote:#1 Unlock Secret Menu(Not sure why we would need it at this point, but it should be done)
#2 Find out how to either decrypt the .LOL's or create new functions without decrypting them.
#1 Secret menu is easily unlocked after you decompile the .LOL files, however, its not of much use.
#2 The .LOL files can be decompiled using luadec ([url]luadec51.luaforge.net[/url]). You will get an error complaining about the header so you either:
a) replace the LUAC_FORMAT in the header from 0x5F to 0x00 in the files you want to decompile; or
b) hex edit luadec to check for the header containing the LUAC_FORMAT 0x5F instead of 0x00;

IMHO, the second option is the best since is a one-time change.
After adding new functions to the .LUA files don't forget to change the LUAC_FORMAT to 0x5F after compiling, or alternatively change the luac.exe to use LUAC_FORMAT 0x5F instead of 0x00.

Re: [REL]Casper's 2012 Progression(Done with Custom Decks/Ca

PostPosted: 26 Jul 2011, 15:03
by Casper7526
Thanks for the info and the program idea, I'll look into it and see what I can do with it, hopefully I can break it down and just modify the LUADeck like you said. Anyway, as long as it crypts it back the same way it should be fine.

Re: [REL]Casper's 2012 Progression(Done with Custom Decks/Ca

PostPosted: 26 Jul 2011, 15:25
by ArgyleEyes
IMHO, the second option is the best since is a one-time change.
sweet deal. something to tinker with today. :p
thanks.

*nvm found it. (hex edited luadec.exe for 0x5F) anyone else end up with decompile warnings in the script? ...*shrugs* not sure if i did it right... w/e XD

Re: [REL]Casper's 2012 Progression(Done with Custom Decks/Ca

PostPosted: 26 Jul 2011, 17:26
by Casper7526
Where at argyle, I couldn't find it and am just resorting to hexing the files themselves.

Re: [REL]Casper's 2012 Progression(Done with Custom Decks/Ca

PostPosted: 26 Jul 2011, 17:52
by ArgyleEyes
luadec.exe
Adr. hex: 10CED
change 00 to 5F

luac.exe
Adr. hex: 90ED
change 00 to 5F

just searched the hex for L (4C) (actually it was all "Lua" 4C 75 61) and found those spots. seems to work for decompile havent tested the compile yet...bout to.

*being a tard* seems like decompiling misses some variables and ends? ..still fuggin around u_u
~which makes compiling pointless.

Re: [REL]Casper's 2012 Progression(Done with Custom Decks/Ca

PostPosted: 26 Jul 2011, 18:17
by Casper7526
Ok well, this is where I'm at, let me know what you think etc etc

We can decrypt the .lol files (Even though it isn't perfect)

But...I don't see how we are able to encrypt them back, can't seem to use LUAC to do it.

Try it with another file, like one that doesn't have errors, such as Misc.LOL in the functions folder.

It decompiles fine without errors, but I still can't figure out how to use luac to crypt it back the way it was.

Re: [REL]Caspers 2012 Custom Content (Version 0.2)

PostPosted: 26 Jul 2011, 18:59
by Casper7526
Edited 1st Post as well as RELv.2, just added all the player avatars.

Re: [REL]Caspers 2012 Custom Content (Version 0.2)

PostPosted: 26 Jul 2011, 22:00
by r3aper
luadec isn't perfect, there are some scripts that won't be 100% accurate and you have to adjust the results by hand before being able to re-compile. Use the -dis flag to check the disassembly.

Casper7526 wrote:Try it with another file, like one that doesn't have errors, such as Misc.LOL in the functions folder.

It decompiles fine without errors, but I still can't figure out how to use luac to crypt it back the way it was.
you must hex edit luac as you did in luadec.

Re: [REL]Caspers 2012 Custom Content (Version 0.2)

PostPosted: 26 Jul 2011, 23:13
by Casper7526
Yeah, stupid mistake lol.

Anyway, so I found out how I can change things and most likely add things in the .lol files but the same problem arises that I believe I figured out earlier.

Core.LOL does nothing, its either that or there is no secret menu and thats just remains from old code along with all the other secret labeled stuff. Cause I made 110% sure I edited the core.lol file correctly and made sure the setvisible was true and yet, nothing.

Community:
I would like to add a function for cards to see if it's possible if someone could give me the #1 easiest function I could add that isn't already in game.

Re: [REL]Caspers 2012 Custom Content (Version 0.2)

PostPosted: 27 Jul 2011, 00:49
by r3aper
Casper7526 wrote:Yeah, stupid mistake lol.

Core.LOL does nothing, its either that or there is no secret menu and thats just remains from old code along with all the other secret labeled stuff. Cause I made 110% sure I edited the core.lol file correctly and made sure the setvisible was true and yet, nothing.

You won't be able to activate the secret menu that way. You must modify
Code: Select all
DATA_CORE_ORIG\DATA_ALL_PLATFORMS\DATA_REQUIRED\LUBE\SKIND12\MENUS\MAIN_MENU\MENU.LOL
, however depending on your experience that might no be trivial. You can use my file (see attachment).

@Admins: if by posting this file I'm violating any copyright laws, please feel free to remove the attachment.

Re: [REL]Caspers 2012 Custom Content (Version 0.2)

PostPosted: 27 Jul 2011, 03:37
by Casper7526
Thanks for all the help, either your doing this as I ask for it, or your already done with alot of this, so let me know if theres anything else I should look into or not worry about at all. I did see what you mean by it not seeming to be a normal file, guessing by why you said it might not be trivial as you had to use -dis to see the functions then hex them that way I assume.

Anyway as a note to the community, the secret menu seems to be 99.9% useless unless you want to experience crashes and multitudes of things that dont work, so I will not be including it in a release yet.

Sooo now I'm not sure what else to do with my release, I'm pretty positive adding a new function wouldn't be extremely difficult, but since I'm completely new to modding these games I don't even feel like attempting to work one out, I'll let the more advanced handle it from here, hopefully this gives a great base to work of off and kev can make some great decks to enhance this game.