A drift of a tutorial for SkyTemple
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
Some fixes and additions
Tags: Visual edit Mobile edit Mobile web edit Advanced mobile edit
Line 7: Line 7:
When you open the ROM for the first time, double click on Patches -> ASM. There, you can find quite a few built-in patches. Some enhances the gameplay, some fixes bugs and some allows editing certain parts of the game. The most important patch for ROM hacking is ActorAndLevelLoader. It allows you to add new or editing existing actors and allows you to add or edit existing cutscenes or overworlds. Additionally, some patches require other patches to be applied first, the most often requirement being ExtraSpace.  
When you open the ROM for the first time, double click on Patches -> ASM. There, you can find quite a few built-in patches. Some enhances the gameplay, some fixes bugs and some allows editing certain parts of the game. The most important patch for ROM hacking is ActorAndLevelLoader. It allows you to add new or editing existing actors and allows you to add or edit existing cutscenes or overworlds. Additionally, some patches require other patches to be applied first, the most often requirement being ExtraSpace.  


In Patches->ASM, at the Others tab, you can apply your own, custom SkyPatches. If you open the location of your ROM, you'll see a folder with the same name as your ROM, with .skytemple at the end. In there, you can see the folder called "patches". Put any .skypatch file you need to apply to that ROM, head to Patches->ASM, then Others and apply the patch. When you open the Others tab, you can see a warning about compatibility. All this warning means is that in the future updates of SkyTemple, you may or may not be able to apply the patch. If you already applied the patch, updating SkyTemple won't break it.  
In Patches->ASM, at the Others tab, you can apply your own, custom SkyPatches. If you open the location of your ROM, you'll see a folder with the same name as your ROM, with .skytemple at the end. In there, you can see the folder called "patches". Put any .skypatch file you need to apply to that ROM, head to Patches->ASM, then Others and apply the patch. When you open the Others tab, you may see a warning about compatibility. All this warning means is that in the future updates of SkyTemple, you may or may not be able to apply the patch. If you already applied the patch, updating SkyTemple won't break it.  
 
This warning exists in the older version of SkyTemple. Newer versions disallow any incompatible patches. 


'''Creating a scene'''
'''Creating a scene'''
Line 40: Line 42:
Script doesn't contain any opcodes that would end it(<code>end;</code>, <code>JumpCommon</code>, etc.)
Script doesn't contain any opcodes that would end it(<code>end;</code>, <code>JumpCommon</code>, etc.)
* SkyTemple throws an error on the line <code>camera_SetMyself<performer 0>();</code>
* SkyTemple throws an error on the line <code>camera_SetMyself<performer 0>();</code>
Outdated version of SkyTemple. Use <code>with (performer 0) {
Outdated version of SkyTemple. Use  
    camera_SetMyself();
 
}</code> instead.
<code>with (performer 0) {</code>
 
<code>    camera_SetMyself();</code>
 
<code>}</code> instead.
 
'''Editing actors'''
 
To edit or add new actors, go to Lists->Actors. There, you can see all characters that exist in the game, and a plus button at the bottom to add new one. Upon pressing it, you need to scroll down all the way until you see an actor with a name NEW. By double clicking, you can change the internal name, the species, as well as what name should this character have. In order to do that, go to Text Strings -> English, and in the opened tab, search for "Dummy", double click on found entry, then put a name for your new character. Remember the ID of that string! Now, go back to Lists->Actors, scroll down to the end, then put an ID of the string you edited to Text String for Name.
 
'''Adding new objects'''
 
If you want to add the new object, apply ExtractObjectTable first. After that, double click on Objects Sprites, then click on New Object Sprite. After that, save and reload the ROM(it is necessary, otherwise, you'll get an error on the next step). Then, find the new object sprite, and import your object. If you just want a static object, press Import Image. An image you have must be indexed, have 16 colors(one of which is transparency color) and up to 512x512 resolution. Then, go to Lists->Objects, press plus button, scroll down, rename the last object exactly the same as object sprite is named, then save and reload the ROM again.