(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-02-24 04:49 AM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - LASTRESULT Overflow :\ New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
Liquid_Thunder

Micro-Goomba


 





Since: 11-23-05

Last post: 6495 days
Last view: 6495 days
Posted on 07-15-06 01:08 PM Link | Quote
I've made a script, for night&day in Ruby


#org 0x0001
checkflag 0x10A
if LASTRESULT B_TRUE
goto 0x0002
if LASTRESULT B_FALSE
goto 0x0003
end

#org 0x00003 'giorno
setweather 0x0 'light
nop
doweather
nop
pause 0x28
goto 0x00002
end

#org 0x00002 'notte
setflag 0x10A
setweather 0xB 'dark
nop
doweather
nop
clearflag
pause 0x28
goto 0x0003
end



When i try to compile it, it gives me "Overflow". If I remove LASTRESULT, the Overflow go to hell. What do i have to do?


P.S. Sorry for my bad english, i'm italian.


(edited by Liquid_Thunder on 07-15-06 12:09 PM)
(edited by Liquid_Thunder on 07-15-06 12:12 PM)
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6282 days
Last view: 6282 days
Posted on 07-15-06 05:05 PM Link | Quote
Why does 0x00002 go to 0x00003 which just goes back to 0x00002?
Liquid_Thunder

Micro-Goomba


 





Since: 11-23-05

Last post: 6495 days
Last view: 6495 days
Posted on 07-16-06 10:47 AM Link | Quote
Because i have to repeat the script for night & day
Kyoufu Kawa
Intends to keep Rom Hacking in one piece until the end








Since: 11-18-05
From: Catgirl Central Station

Last post: 6282 days
Last view: 6282 days
Posted on 07-16-06 11:23 AM Link | Quote
Better question: why do you have #orgs at such addresses? Even if LASTRESULT didn't overflow, Giorno would overwrite Notte!
KeiiChi Kun

Leever
Learn some manners.
Password changed to gibberish and IP banned.


 





Since: 01-01-06
From: Sushi Bar

Last post: 6295 days
Last view: 6295 days
Posted on 07-16-06 11:56 AM Link | Quote
Originally posted by Liquid_Thunder
I've made a script, for night&day in Ruby


#org 0x0001
checkflag 0x10A
if LASTRESULT B_TRUE
goto 0x0002
if LASTRESULT B_FALSE
goto 0x0003
end

#org 0x00003 'giorno
setweather 0x0 'light
nop
doweather
nop
pause 0x28
goto 0x00002
end

#org 0x00002 'notte
setflag 0x10A
setweather 0xB 'dark
nop
doweather
nop
clearflag
pause 0x28
goto 0x0003
end



When i try to compile it, it gives me "Overflow". If I remove LASTRESULT, the Overflow go to hell. What do i have to do?


P.S. Sorry for my bad english, i'm italian.


When you sort this messy code out do you mind if I use it? It looks pretty useful.
Darkdata

980








Since: 02-25-06
From: Newfoundland

Last post: 6282 days
Last view: 6282 days
Posted on 07-16-06 03:27 PM Link | Quote
A day night script like that would not work.
The script is only going to go DNDNDNDNDNDND really really fast in a loop.
Day=D
Night=N

You need to make some sort of event that would do it.
Or have it change day to night as you go through your adventure.

A day and night script could be usefull for some areas of the game. However making it day and night for all the game and having to rewrite a lot of npc speech to respond to it would be a pain.

I hoped I helped a little.
-Darkdata

Edit: My 300th post


(edited by Darkdata on 07-16-06 02:32 PM)
Liquid_Thunder

Micro-Goomba


 





Since: 11-23-05

Last post: 6495 days
Last view: 6495 days
Posted on 07-17-06 08:09 AM Link | Quote
I'm going to edit the value of pause Like 30 minutes. This is only a proof :O


(edited by Liquid_Thunder on 07-17-06 07:09 AM)
Darkdata

980








Since: 02-25-06
From: Newfoundland

Last post: 6282 days
Last view: 6282 days
Posted on 07-17-06 02:20 PM Link | Quote
I thought pause would pause your character too =/
Why not use the groundon weather script as a base?
If you can find it.


(edited by Darkdata on 07-17-06 01:21 PM)
Liquid_Thunder

Micro-Goomba


 





Since: 11-23-05

Last post: 6495 days
Last view: 6495 days
Posted on 07-17-06 03:15 PM Link | Quote
Ok i will try it . Today i put the script in the "Level Script", but the script don't work :\ Why?
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6282 days
Last view: 6282 days
Posted on 07-17-06 06:34 PM Link | Quote
I doubt the game is multithreaded. It'd just wait for your script to complete, and the script is an endless loop.
Liquid_Thunder

Micro-Goomba


 





Since: 11-23-05

Last post: 6495 days
Last view: 6495 days
Posted on 07-18-06 05:54 AM Link | Quote
Holy shit..Do you have any suggestions? :\
Sukasa

Birdo
Not quite as active as before.
Xkeeper supporter
Xk > ||bass
I IP Banned myself! Twice!








Since: 11-17-05
From: Somewhere over there

Last post: 6283 days
Last view: 6282 days
Posted on 07-20-06 03:03 AM Link | Quote
Yeah... find a RAM address, and create a counter that counts up by one every frame. When it reaches X amount, increment a second counter. when this second counter = Y amount, switch between night or day, or any step between the two. otherwise, just return from the loop and that should work.

oh, and X + Y are to be replaced by whatever pause amount you want.
Liquid_Thunder

Micro-Goomba


 





Since: 11-23-05

Last post: 6495 days
Last view: 6495 days
Posted on 07-20-06 04:54 AM Link | Quote
Lol, i'm not an advance hacker :°°°DDD. I don't know how to do this .
Yoronosuku

Toss Tortoise


 





Since: 11-17-05
From: Massachusetts is my new home..

Last post: 6282 days
Last view: 6282 days
Skype
Posted on 07-20-06 09:10 AM Link | Quote
While your non-functional code is evident of the fact that you probably dont really know what you're doing, it at least elps that you TRY to gain an understanding and figure out how to do things. If you give up just because something "sounds too hard", you won't ever learn. If you stay doing only "easy" things you'll never get any better.
Hapi-San

Kabu








Since: 11-17-05
From: London, UK

Last post: 6296 days
Last view: 6282 days
Posted on 07-20-06 09:20 AM Link | Quote
Instead of creating a new counter in free RAM to do this, wouldn't it be possible to check using the in-game timer (ie. how long you've been playing)? Dividing the hour by six and checking if it's even or odd depending on day or night or something..? As an idea of an alternate way.
Liquid_Thunder

Micro-Goomba


 





Since: 11-23-05

Last post: 6495 days
Last view: 6495 days
Posted on 07-20-06 09:38 AM Link | Quote
I didn't give up..Just i don't know how to do that O_o'
amnesiahacker

Red Goomba


 





Since: 12-21-05

Last post: 6489 days
Last view: 6489 days
Posted on 07-20-06 10:52 AM Link | Quote
did you look in my thread suggesting a method? im currently refining it and putting it into a proper code for rubikon.
Gywall

Coney








Since: 11-20-05
From: England!

Last post: 6284 days
Last view: 6282 days
Posted on 07-20-06 01:14 PM Link | Quote
goto 0x0003 <- Is that supposed to be 0x00003?
If so, both are wrong.
And the first goto 0x0002.. Same thing?
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - ROM Hacking - LASTRESULT Overflow :\ |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.024 seconds; used 428.96 kB (max 539.01 kB)