|
 |
|
|
|
|
|
Attention:
|
The Mod Showroom is only for posting previews/downloads of completed or near finished mods. All help topics should be posted in the Editing Discussion forums. Help topics and mod requests posted here will be locked or binned. Thank you.
|
|
GTAGarage.com : Free mod hosting, attach your files and screenshots to your topics
GTAModding.com : A wiki for everything related to GTA modding, including documentation and tutorials
|
Real Time Clock, Me = SUCCESS!
 |
|
 |
| |
spaceeinstein  |
|
Chocolate

Group: Members
Joined: Jul 17, 2003



|
CONVERTED FOR SAN ANDREAS!
Created by Barton Waterduck for Vice City. Converted by spaceeinstein for San Andreas. This is a script mod that controls the in-game clock to imitate real life ones.
Installation for intermediate scripters only. Please download Barton's mission builder using Craig's link. The weather will stay the same but will be modified later on.
| CODE | 004F: create_thread ££TimeMod
...
:TimeMod 0004: $weather = 6;; integer values 0006: @33 = 0;; integer values - Reset internal timer
:TimeLoop 0001: wait 500 ms 00BF: @1 = current_time_hours, @2 = current_time_minutes 00C0: set_current_time @1 @2 01B5: force_weather $weather 00D6: if 0 0019: @33 > 59999;; integer values - if internal timer >= 1 minute 004D: jump_if_false ££TimeLoop 0006: @33 = 0;; integer values - reset the internal timer 000A: @2 += 1;; integer values 00D6: if 0 0019: @2 > 59;; integer values 004D: jump_if_false ££TimeModL2 0006: @2 = 0;; integer values 000A: @1 += 1;; integer values 00D6: if 0 0038: $ON_MISSION == 0;; integer values 004D: jump_if_false ££TimeModL3 0008: $weather += 1;; integer values 00D6: if 0 0018: $weather > 19;; integer values 004D: jump_if_false ££TimeModL3 0004: $weather = 0;; integer values
:TimeModL3 00D6: if 0 0019: @1 > 23;; integer values 004D: jump_if_false ££TimeModL2 0006: @1 = 0;; integer values
:TimeModL2 00C0: set_current_time @1 @2 0002: jump ££TimeLoop |
Gltiches: May interfere with timers in the game. This post has been edited by spaceeinstein on Jul 22 2005, 23:42
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Demarest  |
|
what could be

Group: BUSTED!
Joined: Jul 12, 2003

|
| QUOTE (spaceeinstein @ Jul 14 2005, 23:41) | | Gltiches: May interfere with timers in the game. | I don't think it will. And shouldn't it say "rewritten for SAMB" instead?
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Demarest  |
|
what could be

Group: BUSTED!
Joined: Jul 12, 2003

|
| QUOTE (Dogmeat @ Jul 16 2005, 01:20) | "0004: $weather = 6;; integer values" Could it be this? | Nah. That's just the setting of a variable. Until that variable gets used for something, it wouldn't effect your game at all.
For that matter, this code is totally useless| CODE | 0008: $weather += 0;; integer values 00D6: if 0 0018: $weather > 6;; integer values 004D: jump_if_false ££TimeModL3 0004: $weather = 6;; integer values | ...which begins to reveal what I meant by it being translated for SAMB. As CyQ pointed out earlier in the week, it's not really converting mods because with the exception of using @33 instead of @17, nothing about this is platform specific. It's just reworked so that a different interpreter can use it. If it was converted, code like I quoted would've been eliminated because it does nothing. $WEATHER is set to 6 to start, incremented, and constantly put through an if >6 then 6 check. It's ALWAYS going to be 6. So instead of using another global var, just always say force weather 6 and be done with it.
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
spaceeinstein  |
|
Chocolate

Group: Members
Joined: Jul 17, 2003



|
O, yes, about that weather part, it was for my All In One Mod which uses the real time clock mod to make my permanent sunny weather in Vice City. I converted straight from that. Barton didn't do that, I did that, for my dead mod. If you want to fix that, here it is.
| CODE | 0008: $weather += 1 ;; integer values 00D6: if 0 0018: $weather > 19 ;; integer values 004D: jump_if_false ££TimeModL3 0004: $weather = 0 ;; integer values |
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Demarest  |
|
what could be

Group: BUSTED!
Joined: Jul 12, 2003

|
| QUOTE (Dogmeat @ Jul 16 2005, 12:40) | | "Memory beyond the defined range has been accessed. Use DEFINE MEMORY 43805 or higher to allocate enough memory." | Actually, it says to set it to that and recompile. So... set it to that and recompile
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Dogmeat  |
|
Snitch

Group: Members
Joined: May 12, 2005


|
|
|
|
|
|
 |
|
 |
|
|
|
|