Banner
Views: 1,004,126,213
Time:
17 users online: Ahrion, Dan2point5, ElReyGarcia, gui, h.carrell,  idol,  Kevin, Klug,  LMNtals, mr_cool, NBKevin98, Nint, pedro1994, SirMystic, slopcore, Thiago678, Tiger21820 - Guests: 100 - Bots: 122 Users: 54,868 (2,028 active)
Latest: 128ram
Tip: The "Edit Animation Settings" tab in Lunar Magic is very convenient if you want to disable certain animations in the game to make room for your own graphics or ExAnimations.
Not logged in.
Is there a tutorial on this
Forum Index - SMW Hacking - SMW Hacking Help - Is there a tutorial on this
Pages: « 1 » Link
Is there a tutorial on how to convert a custom sprite meant for TRASM into one for xkas? I'm curious about this

Originally posted by Alcaro
because TRASM is clearly possessed by some satanism.


--------------------
There used to be stuff in this footer, but it's all gone now.
use this
Originally posted by Ladida
use this


Didn't work. Same error as before, just this time because the ".cfg" had info that wasn't compatible with the xkas sprite inserter.

Oh and by the way, here is the sprite I'm trying to insert.

--------------------
There used to be stuff in this footer, but it's all gone now.
ok, for manual conversion:

1. replace
Code
dcb "INIT"

with
Code
print "INIT ",pc

same with MAIN

2. dcb/dcw/dcl must be changed to db/dw/dl:
Code
dcb $30,$20,$10

to
Code
db $30,$20,$10


3. put colons on all labels (not references to labels)
Code
LOLCODE
BRA LOLCODE

becomes
Code
LOLCODE:
BRA LOLCODE


4. prepend all defines with !
Code
XSPEED = $30
...
LDA #XSPEED

becomes
Code
!XSPEED = $30
...
LDA #!XSPEED

dont confuse defines and labels; they might be a bit hard to differentiate in TRASM code.

5. open the cfg with the cfg editor and check "use xkas for assembly", or open the cfg with a text editor and add a 6th line containing:
Code
1




thats all that comes to mind
Originally posted by Ladida
ok, for manual conversion:

thats all that comes to mind


I'm getting closer. The only things that are left are

A. Parts where I confused defines and labels
B. Me forgetting about putting at least one instance where the label comes before the define.
C.
Originally posted by Spritetool temp.log
error: tmpasm.asm: line 40{2}: invalid opcode or command [TABLE1,x]


And here is the line in specific.

Originally posted by WaterRise.asm
LDA: TABLE1,x


But that's the first instance of the label "LDA", and the next one is

Originally posted by WaterRise.asm
LDA #!$01


A define. And this is the case for all labels. What do I need to do?

--------------------
There used to be stuff in this footer, but it's all gone now.
kjaf ihsdoi
lesgfoweingwlk
oiwehngfoiweg
ksjdbf
hioghsw gfiusdohf

the 3-letter mnemonics are opcodes AKA actual code. leave them alone
Originally posted by Ladida
kjaf ihsdoi
lesgfoweingwlk
oiwehngfoiweg
ksjdbf
hioghsw gfiusdohf


What one Earth does that mean. I'm sorry if I'm causing a problem for you. So anywho, now it's working in reverse.

Code
error: tmpasm.asm: line 43: define not declared (yet?)
error: tmpasm.asm: line 43: invalid opcode or command [LDA]


and the problem continues on with all references to the label. So, any idea.

--------------------
There used to be stuff in this footer, but it's all gone now.
Originally posted by TheSuperRotom
Originally posted by Ladida
kjaf ihsdoi
lesgfoweingwlk
oiwehngfoiweg
ksjdbf
hioghsw gfiusdohf


What one Earth does that mean.

It quite clearly means kjaf ihsdoi lesgfoweingwlk oiwehngfoiweg ksjdbf hioghsw gfiusdohf.

Quote
Code
error: tmpasm.asm: line 43: define not declared (yet?)
error: tmpasm.asm: line 43: invalid opcode or command [LDA]


and the problem continues on with all references to the label. So, any idea.

Did you even read the second half of his post?
Originally posted by Ladida
the 3-letter mnemonics are opcodes AKA actual code. leave them alone


--------------------
<blm> zsnes users are the flatearthers of emulation
Originally posted by Alcaro
Did you even read the second half of his post?


That would be a yes. And here's proof.

Originally posted by TheSuperRotom (Before)

error: tmpasm.asm: line 40{2}: invalid opcode or command [TABLE1,x]
LDA: TABLE1,x (Line 40)
LDA #!$01 (Line 43)


And here is how it is now.

error: tmpasm.asm: line 43: define not declared (yet?)
error: tmpasm.asm: line 43: invalid opcode or command [LDA]
LDA TABLE1,x (Line 40)
LDA !24 (Line 43)

So clearly I did something wrong.

--------------------
There used to be stuff in this footer, but it's all gone now.
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - Is there a tutorial on this

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2022 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks