(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-17-24 05:28 AM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - LASTRESULT Overflow :\
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Gywall
Posts: 106/187
goto 0x0003 <- Is that supposed to be 0x00003?
If so, both are wrong.
And the first goto 0x0002.. Same thing?
amnesiahacker
Posts: 25/35
did you look in my thread suggesting a method? im currently refining it and putting it into a proper code for rubikon.
Liquid_Thunder
Posts: 17/17
I didn't give up..Just i don't know how to do that O_o'
Hapi-San
Posts: 35/61
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.
Yoronosuku
Posts: 667/1239
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.
Liquid_Thunder
Posts: 16/17
Lol, i'm not an advance hacker :°°°DDD. I don't know how to do this .
Sukasa
Posts: 1173/2068
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
Posts: 15/17
Holy shit..Do you have any suggestions? :\
HyperHacker
Posts: 2588/5072
I doubt the game is multithreaded. It'd just wait for your script to complete, and the script is an endless loop.
Liquid_Thunder
Posts: 14/17
Ok i will try it . Today i put the script in the "Level Script", but the script don't work :\ Why?
Darkdata
Posts: 303/983
I thought pause would pause your character too =/
Why not use the groundon weather script as a base?
If you can find it.
Liquid_Thunder
Posts: 13/17
I'm going to edit the value of pause Like 30 minutes. This is only a proof :O
Darkdata
Posts: 300/983
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
KeiiChi Kun
Posts: 96/190
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.
Kyoufu Kawa
Posts: 941/1353
Better question: why do you have #orgs at such addresses? Even if LASTRESULT didn't overflow, Giorno would overwrite Notte!
Liquid_Thunder
Posts: 12/17
Because i have to repeat the script for night & day
HyperHacker
Posts: 2539/5072
Why does 0x00002 go to 0x00003 which just goes back to 0x00002?
Liquid_Thunder
Posts: 11/17
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.
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.004 seconds; used 358.41 kB (max 405.80 kB)