May 18, 2011 at 8:43 PM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
Dubby said:
I don't mean to sound rude and I really hope I don't come across as such because I'm not trying to offend you or anyone, but have you -ever- written anything code-related before? Like, even HTML? It's just, it's almost like you don't quite understand the flow of the script. And uh, well if you don't know the basics, trying to skip 'chapter 1' and go straight to 'chapter 3' is going to leave you hanging. I know TSC isn't really HTML, but HTML is probably the -closest- thing I can think of. I believe you need to research beginner's programming guides online, and do some reading. Try languages such as Java or C++, not that I am suggesting you learn any, only that you read up to get the gist of some programming basics under wrap. Many problems one can experience, especially many that you have been describing, are as clear as a typo when you understand that an event needs a beginning, a body, an end, and understand the importance of the placement and order of all the components.
You know, I'm clueless with visual studio programming, and I've never touched java, but I'm pretty decent with TSC. I do think that HTML is as close to TSC as you're gonna get. They both are tag based programming languages after all.
Also, what does TSC even stand for?
 
May 18, 2011 at 8:56 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3054
LunarSoul said:
They both are tag based programming languages after all.
Wat.


On your question, I don't know if anybody on the forums knows. Correct me if I'm wrong, GIR or someone else who knows japanese.
 
May 18, 2011 at 9:00 PM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
Wat you mean wat?!

I know minimal japanese, but it sounds like you'd need to know kanji to figure out what it means.
 
May 18, 2011 at 9:04 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3054
unless I am horribly, horribly insane, tsc is not tag based.
 
May 18, 2011 at 9:07 PM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
Really?
Oh noes, I have been embarrassed!
...Not really. Everyone makes mistakes.
Including YOU, random guest who nobody knows.
...Speaking of insignificant, I better get working on misery story.
 
May 18, 2011 at 9:09 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: May 14, 2011
Location: In your closet... being a creeper.
Posts: 53
Age: 33
Lol maybe it stands for [T]he [C]ript, I don't know but it's a guess lol:awesomeface:
 
May 18, 2011 at 9:24 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3054
LunarSoul said:
Really?
Oh noes, I have been embarrassed!
...Not really. Everyone makes mistakes.
Well obviously. My intent was not to embarrass you, but rather to make sure that you/others didn't believe that was the truth. The purpose of this thread is to help people who need help with relatively simple things, so a quantity of correct information is helpful. Conversely, spreading misinformation, voluntarily or not, harms both those who want to learn and those who want to help. Ergo, it is a good thing to point out mistakes.

LunarSoul said:
Including YOU, random guest who nobody knows.
?

Game Reaper said:
Lol maybe it stands for [T]he [C]ript, I don't know but it's a guess lol:awesomeface:
Haha that'd be nice wouldn't? Alas I don't think that's the way it works. Japanese and all that :D
 
May 18, 2011 at 9:26 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: May 14, 2011
Location: In your closet... being a creeper.
Posts: 53
Age: 33
lol i forgot the game was japanese! :D
 
May 19, 2011 at 1:42 AM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
Lace said:
Well obviously. My intent was not to embarrass you, but rather to make sure that you/others didn't believe that was the truth. The purpose of this thread is to help people who need help with relatively simple things, so a quantity of correct information is helpful. Conversely, spreading misinformation, voluntarily or not, harms both those who want to learn and those who want to help. Ergo, it is a good thing to point out mistakes.
Of course. Just joking around, my feelings are intact.

Game Reaper said:
lol i forgot the game was japanese! :orangebell:
0.0

Also, in response to your sig, Reaper:
I've been thinking. When life gives you lemons, don't make lemonade. Give the lemons back! Get mad! I DON'T WANT YOUR LEMONS! Demand to speak to life's manager! Make life rue the day it thought it could give Cave Johnson lemons! DO YOU KNOW WHO I AM?! I'm the guy who's gonna BURN YOUR HOUSE DOWN! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!

EDIT:
Can anyone help? This ASM code should check if the weapon is polar star lv 3, and if so, keep going. Then it checks if current HP is less than max HP. If so, it sets current HP to max HP. It seems to crash at about address 48B916.
Code:
CPU Disasm
---------------------------------------------------------------------------
0048B904      C3            RETN
0048B905      8B0D 9C9C4900 MOV ECX,DWORD PTR DS:[499C9C]
0048B90B      83F9 06       CMP ECX,6
0048B90E    ^ 75 F4         JNE SHORT 0048B904
0048B910      A1 D0E64900   MOV EAX,DWORD PTR DS:[49E6D0]
0048B915      90            NOP
0048B916      3905 CCE64900 CMP DWORD PTR DS:[49E6CC],EAX
0048B91C    ^ 74 E6         JE SHORT 0048B904
0048B91E      A3 CCE64900   MOV DWORD PTR DS:[49E6CC],EAX
0048B923      90            NOP
0048B924      59            POP ECX
0048B925      58            POP EAX
0048B926      C3            RETN
I know there's random NOPs in there, but I'm too lazy to take them out.
 
May 19, 2011 at 2:57 AM
I don't anymore.
"I'm sorry Mario, but your princess is in another castle."
Join Date: Aug 9, 2010
Location: Greener Pastures
Posts: 1190
Age: 30
LunarSoul said:
Of course. Just joking around, my feelings are intact.


0.0

Also, in response to your sig, Reaper:
I've been thinking. When life gives you lemons, don't make lemonade. Give the lemons back! Get mad! I DON'T WANT YOUR LEMONS! Demand to speak to life's manager! Make life rue the day it thought it could give Cave Johnson lemons! DO YOU KNOW WHO I AM?! I'm the guy who's gonna BURN YOUR HOUSE DOWN! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!

Damn you for steeling my reference Lunarsoul! Damn you to hell!
 
May 19, 2011 at 3:56 AM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3054
@Lune:
Did you push eax and ecx before this blob you showed? If not, I believe that's what the error is.

Try this:
Code:
cmp [499c9c],6
jne B
push eax
mov eax,[49e6d0]
mov [49e6cc],eax
pop eax
B ret
or, if the preservation of eax is not ABSOLUTELY CRUCIAL (which is what I strongly suspect) then just do:
Code:
cmp [499c9c],6
jne B
mov eax,[49e6d0]
mov [49e6cc],eax
B ret
 
May 19, 2011 at 12:18 PM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
HyMyNameIsMatt said:
Damn you for steeling my reference Lunarsoul! Damn you to hell!
Ah! Ah haha! I didn't even see that in your sig! Sorry, matt. X3
Lace said:
@Lune:
Did you push eax and ecx before this blob you showed? If not, I believe that's what the error is.

Try this:
Code:
cmp [499c9c],6
jne B
push eax
mov eax,[49e6d0]
mov [49e6cc],eax
pop eax
B ret
or, if the preservation of eax is not ABSOLUTELY CRUCIAL (which is what I strongly suspect) then just do:
Code:
cmp [499c9c],6
jne B
mov eax,[49e6d0]
mov [49e6cc],eax
B ret
Uh, push [register] puts it on top of the stack, right?
If so, that makes sense. Thanks!

EDIT: Wait, so you don't even need to pop the register?

EDIT2:
Noxid said:
Just call the TSC event through assembly

00421990 - Call TSC Event [08_ScriptID]
Are you sure this is ZAM? Whenever I try to use the weapon, it just says "empty".
 
May 19, 2011 at 4:11 PM
Senior Member
"Ha! Ha! Ha! Mega Man is no match for my Mimiga Man!"
Join Date: Jan 21, 2011
Location:
Posts: 249
Lace said:
unless I am horribly, horribly insane, tsc is not tag based.

I'd consider TSC to be 'pseudo tag-based', as there are no end-tags and because of that the scope of the script never changes, whereas tag-based scripts have a flexible scope. I suppose a *better* synonym to TSC would be BBCode.

LunarSoul said:
EDIT2:

Are you sure this is ZAM? Whenever I try to use the weapon, it just says "empty".

What exactly are you trying to do, anyways?
 
May 19, 2011 at 6:20 PM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
Dubby said:
What exactly are you trying to do, anyways?
Making a weapon that restores life, then resets exp of that weapon.
 
May 19, 2011 at 9:18 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: May 14, 2011
Location: In your closet... being a creeper.
Posts: 53
Age: 33
Pineapples!:momo:
LunarSoul said:
Making a weapon that restores life, then resets exp of that weapon.


Ok that's cool! where'd you get thet idea?
 
May 19, 2011 at 9:22 PM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
Not sure! I thought of it when I was first making misery story.
It occurred to me that I could make the weapon need ridiculous exp gain to level up to 3, then just add 1 HP.
BTW, thanks for all the help guys!
 
May 19, 2011 at 9:35 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: May 14, 2011
Location: In your closet... being a creeper.
Posts: 53
Age: 33
cool!
Misery story? Lol, let me guess it's about misery.
 
May 19, 2011 at 11:02 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: May 14, 2011
Location: In your closet... being a creeper.
Posts: 53
Age: 33
Cool! I'm looking forward to playing it:mrgreen:
 
May 20, 2011 at 12:03 AM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3054
LunarSoul said:
Uh, push [register] puts it on top of the stack, right?
If so, that makes sense.
yes.

LunarSoul said:
EDIT: Wait, so you don't even need to pop the register?
I'm not sure what you're getting at. One does not pop a register - one pops to a register. Popping merely removes the top of the stack and puts it into a variable.

LunarSoul said:
EDIT2:Are you sure this is ZAM? Whenever I try to use the weapon, it just says "empty".
That isn't ZAM in particular - it's the code to call any tsc event. What you want to do is put an event in head.tsc, and then push that event #, call that code give, and then add to esp.
 
Top