Register - Login
Views: 87390324
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - JCS - Stats - Latest Posts - Color Chart - Smilies
11-21-17 05:22:48 AM

Jul - Game Research/Hacking/Modding - Super Monkey Ball hacking! New poll - New thread - New reply
Pages: 1 2Next newer thread | Next older thread
Yoshimaster96

Shyguy
Level: 19


Posts: 3/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 03-25-14 07:49:38 PM (last edited by Yoshimaster96 at 03-28-14 08:01:34 AM) Link | Quote
I know I originally posted this in the screenshots/videos thread, but I thought I'd give it its own thread. Also, I'll explain in more detail.
This is my first attempt, where I found out that the collision wasn't quite right. I later found that the collision was in a separate file:


This is my attempt at vertex shading. Stages such as Master 2 use this:

This is my custom texture test. You can tell what it's a picture of:

I tried SMB2, the files were exactly the same:


I later edited the lz file (which is compressed). My first attempts crashed the game, but later attempts I placed some objects.

Note that none of these have the correct collision, or in the case of the last one, has no collision at all. And there you have it. Me hacking Super Monkey Ball!
gridatttack

Buzzy Beetle
Rarity FTW
Level: 39


Posts: 342/375
EXP: 398307
For next: 6464

Since: 08-26-09


Since last post: 314 days
Last activity: 84 days

Posted on 03-28-14 11:04:41 PM Link | Quote
I wonder, how did you managed to import models and texture hacks? I would love to do a texture hack of SMB2

And yeah, sucks about the collision being in a separate file. So close to making custom stages
Yoshimaster96

Shyguy
Level: 19


Posts: 5/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 03-29-14 08:53:52 AM Link | Quote

I wonder, how did you managed to import models and texture hacks? I would love to do a texture hack of SMB2


Editing the gma and tpl files. Gma contains the geometry, tpl contains the textures.
gridatttack

Buzzy Beetle
Rarity FTW
Level: 39


Posts: 343/375
EXP: 398307
For next: 6464

Since: 08-26-09


Since last post: 314 days
Last activity: 84 days

Posted on 03-29-14 03:11:49 PM (last edited by gridatttack at 03-29-14 03:45:48 PM) Link | Quote
Originally posted by Yoshimaster96

I wonder, how did you managed to import models and texture hacks? I would love to do a texture hack of SMB2


Editing the gma and tpl files. Gma contains the geometry, tpl contains the textures.


I know, but how did you edit/make the .tpl files? O.o
IIRC they are .tpls that have multiple images. I tried ripping the graphics once, but the .tpl extractor gave errors since it was a multiple image per file.

Also I wonder if its possible to replace the music and make .dsp files.
Yoshimaster96

Shyguy
Level: 19


Posts: 6/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 03-29-14 04:39:31 PM (last edited by Yoshimaster96 at 03-29-14 04:40:46 PM) Link | Quote



I wonder, how did you managed to import models and texture hacks? I would love to do a texture hack of SMB2
Editing the gma and tpl files. Gma contains the geometry, tpl contains the textures.
I know, but how did you edit/make the .tpl files? O.o
IIRC they are .tpls that have multiple images. I tried ripping the graphics once, but the .tpl extractor gave errors since it was a multiple image per file.

Also I wonder if its possible to replace the music and make .dsp files.

I first had to decode the tpl format before I could replace them.

As for music, I haven't tried that.
gridatttack

Buzzy Beetle
Rarity FTW
Level: 39


Posts: 344/375
EXP: 398307
For next: 6464

Since: 08-26-09


Since last post: 314 days
Last activity: 84 days

Posted on 03-29-14 05:40:06 PM Link | Quote
Originally posted by Yoshimaster96



I wonder, how did you managed to import models and texture hacks? I would love to do a texture hack of SMB2
Editing the gma and tpl files. Gma contains the geometry, tpl contains the textures.
I know, but how did you edit/make the .tpl files? O.o
IIRC they are .tpls that have multiple images. I tried ripping the graphics once, but the .tpl extractor gave errors since it was a multiple image per file.

Also I wonder if its possible to replace the music and make .dsp files.

I first had to decode the tpl format before I could replace them.

As for music, I haven't tried that.


Oh so theres no sort of program that helps in editing...
I wonder, is it hard to decode/replace the textures? O.o
As I said, it would be cool to make a texture hack of SMB2 ^^
Yoshimaster96

Shyguy
Level: 19


Posts: 7/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 03-29-14 09:17:03 PM (last edited by Yoshimaster96 at 04-02-14 06:37:39 PM) Link | Quote
Originally posted by gridatttack
Originally posted by Yoshimaster96



I wonder, how did you managed to import models and texture hacks? I would love to do a texture hack of SMB2
Editing the gma and tpl files. Gma contains the geometry, tpl contains the textures.
I know, but how did you edit/make the .tpl files? O.o
IIRC they are .tpls that have multiple images. I tried ripping the graphics once, but the .tpl extractor gave errors since it was a multiple image per file.

Also I wonder if its possible to replace the music and make .dsp files.

I first had to decode the tpl format before I could replace them.

As for music, I haven't tried that.


Oh so theres no sort of program that helps in editing...
I wonder, is it hard to decode/replace the textures? O.o
As I said, it would be cool to make a texture hack of SMB2 ^^


Well, if you have heard of GXGMA, it is open source. That helped me a lot. Plus the tpl format is well documented, being used in Mario Kart Wii.
Yoshimaster96

Shyguy
Level: 19


Posts: 8/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 04-04-14 05:31:26 PM (last edited by Yoshimaster96 at 04-04-14 09:33:21 PM) Link | Quote
Originally posted by gridatttack
I would love to do a texture hack of SMB2

Will this help you out?
gridatttack

Buzzy Beetle
Rarity FTW
Level: 39


Posts: 345/375
EXP: 398307
For next: 6464

Since: 08-26-09


Since last post: 314 days
Last activity: 84 days

Posted on 04-05-14 11:01:54 AM Link | Quote
Originally posted by Yoshimaster96
Originally posted by gridatttack
I would love to do a texture hack of SMB2

Will this help you out?


Wow thats really cool!
Thanks! Will try it ASAP!
Yoshimaster96

Shyguy
Level: 19


Posts: 9/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 04-05-14 11:19:23 AM (last edited by Yoshimaster96 at 04-21-14 03:08:32 PM) Link | Quote
Also, after I put this together, I realized that wimgt.exe does not support multiple images. Sorry about that.

Maybe SZS Modifier could help?

Test level collision (if anyone wants to help), stage is 10x10 units:
-5
0
-5
0
1
0
C0010000
C0010000
10
0
10
10
-1
0
0.71
-0.71

-5
0
-5
0
1
0
C0010000
E0010000
14.14
0
14.14
14.14
-0.71
-0.71
0.71
-0.71
Yoshimaster96

Shyguy
Level: 19


Posts: 10/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 04-09-14 05:05:14 PM Link | Quote
Also after the list I gave, there are 256 iterations of 0x00000001FFFF, I'd assume this is the trajectory, as they are all the same, but as for the format, I will have to investigate a level with moving objects.
Yoshimaster96

Shyguy
Level: 19


Posts: 12/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 04-14-14 04:21:27 PM Link | Quote
Here is the gma and tpl docs if anyone is interested.
Yoshimaster96

Shyguy
Level: 19


Posts: 18/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 05-22-14 06:36:02 PM Link | Quote
Here is version 0.1 of the level viewer (soon to be editor). You will need this DLL.
gridatttack

Buzzy Beetle
Rarity FTW
Level: 39


Posts: 352/375
EXP: 398307
For next: 6464

Since: 08-26-09


Since last post: 314 days
Last activity: 84 days

Posted on 05-26-14 12:59:21 PM Link | Quote
Originally posted by Yoshimaster96
Here is version 0.1 of the level viewer (soon to be editor). You will need this DLL.


Awesome, will check it out

Is there any possibility we could be able to export .gma models to .obj and such? (like in gxgma?)
Yoshimaster96

Shyguy
Level: 19


Posts: 19/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 05-31-14 07:26:34 PM Link | Quote
Sorry, but there is no way to do that. But soon you will be able to edit levels, which GXGMA cannot.
gridatttack

Buzzy Beetle
Rarity FTW
Level: 39


Posts: 353/375
EXP: 398307
For next: 6464

Since: 08-26-09


Since last post: 314 days
Last activity: 84 days

Posted on 06-04-14 01:55:13 AM (last edited by gridatttack at 06-04-14 01:55:48 AM) Link | Quote
Originally posted by Yoshimaster96
Sorry, but there is no way to do that. But soon you will be able to edit levels, which GXGMA cannot.

Oh well. I asked becase some .tpl in the .gma files of super monkey ball cant be opened by GXGMA
(and they are some .gma files from SMB2 that GXMA cant even open...)
Yoshimaster96

Shyguy
Level: 19


Posts: 20/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 06-08-14 08:58:07 PM Link | Quote
Here is a screenshot of the original program (rendering AD19):

And here is a screenshot of the new program (same level):

As you can see, the texture rendering is glitched at the moment, but my program will render them accurately soon. Specifically, it is the compressed textures that are giving me problems.
Yoshimaster96

Shyguy
Level: 19


Posts: 22/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 06-28-14 10:32:23 AM Link | Quote
Updated GMA/TPL specification can be found here.

IN NEED OF RECRUITS!
The following will be marked if taken:

Sketchup GMA/TPL exporter plugin
Blender GMA/TPL exporter plugin
LZ decoding/tying up loose ends (collision and moving platforms, SMB2)

PM me for any further questions.
Yoshimaster96

Shyguy
Level: 19


Posts: 26/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 07-08-14 03:42:23 PM (last edited by Yoshimaster96 at 07-26-14 04:16:34 PM) Link | Quote
I found that there are encryption values involved, that are in float. They are the first 4 values in the following list:

-6.05
-6.05
0.76
0.76

-5
0
-5
0
1
0
-2.01
-2.01
10
0
10
10
-1
0
0.71
-0.71

-5
0
-5
0
1
0
-2.01
-37181718523570814976
14.14
0
14.14
14.14
-0.71
-0.71
0.71
-0.71

Again, the level is 10x10 units, centered at the origin.
Yoshimaster96

Shyguy
Level: 19


Posts: 38/91
EXP: 31735
For next: 4042

Since: 03-25-14


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 07-26-14 04:19:08 PM Link | Quote
Also, these hex values may be of use, if it is bitwise encryption:

C0C1999A
C0C1999A
3F41999A
3F41999A

C0A00000
00000000
C0A00000
00000000
3F800000
00000000
C0010000
C0010000
41200000
B58637BD
41200001
411FFFFF
BF800000
00000000
3F3504F7
BF3504F7

C0A00000
00000000
C0A00000
00000000
3F800000
00000000
C0010000
E0010000
4162462F
B58637BD
40E24630
40E2462E
BF3504F7
BF3504F7
3F3504F7
BF3504F7

Also, this site may be useful.
Pages: 1 2Next newer thread | Next older thread
Jul - Game Research/Hacking/Modding - Super Monkey Ball hacking! New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 2f1bc75 [2017-08-27]
©2000-2017 Acmlm, Xkeeper, Inuyasha, et al.

27 database queries, 18 query cache hits.
Query execution time: 0.153770 seconds
Script execution time: 0.022662 seconds
Total render time: 0.176432 seconds