Register - Login
Views: 99380009
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
04-23-22 11:13:43 PM
Jul - SM64 Hacking (Archive) - Changing Weather Effects New poll - New thread - New reply
Next newer thread | Next older thread
messiaen
Catgirl
Level: 68


Posts: 723/1085
EXP: 2594040
For next: 134760

Since: 11-20-07


Since last post: 8.1 years
Last activity: 7.2 years

Posted on 02-05-10 03:17:34 PM (last edited by Metal_Man88 at 02-05-10 04:58 PM) Link | Quote
Here's some documentation about weather effects which hopefully can be added into the next Toad's Tool version (at least on imported levels).

I posted something similar into the "Checksum area" thread many months ago, but when looking at the beta flower stuff I figured out the missing parts to make it work in any level.

First, you need to load this segment into memory:
17 0C 00 0B 00 DA 27 85 00 DA 95 1D

This is where all texture/display list data for the weather effects is located. Note that segment 0x0B is only used for this purpose: this is the only ROM "bank" which uses this segment number. In the future, one could modify the textures, save it as a new bank and use it as "additional" effects by loading the alternate file instead of the original one.

Now, you need to find the function 0x802761D0 called from the level terrain Geo Layout through command 0x18:

18 00 00 [xx] 80 27 61 D0

The fourth byte is the argument passed to this function. Here are the valid values:

00 = no effect
01 = Snow. Used in Cool Cool Mountain (area 1) and Snowman's Land (area 1)
02 = used in Jolly Roger Bay (area 2) and Secret Aquarium
03 = Blizzard (unused?)
04-0A = ??
0B = Beta Flowers in the ground (unused)
0C = Lava effect. Used in Lethal Lava Land (area 1), Bowser's Fire Sea and Bowser Second Battle
0D = used in Dire Dire Docks (area 1)
0E = used in Jolly Roger Bay and Dire Dire Docks (area 2).

Well, the most interesting find surely is the beta flower, showed in the beta stuff thread. There's also a blizzard setting (argument 0x03) which isn't used in any level, though it may be triggered by something else, so I can't say for sure it's unused.

The lava will work only on terrains which use Collision Type 1 (Lava). I'm not sure what do arguments 02, 0D and 0E, but they are probably related to water.
Gecko
Member
Level: 25


Posts: 61/113
EXP: 83008
For next: 6612

Since: 03-27-09


Since last post: 9.1 years
Last activity: 7.6 years

Posted on 02-05-10 04:43:41 PM Link | Quote
Is the blizzard effect maybe the same used in front of the snowman, who's trying to blow you away from its platform?
Nice findings by the way.
Lyskar
12210
-The Chaos within trumps the Chaos without-
Level: 192


Posts: 4224/12211
EXP: 99235605
For next: 637966

Since: 07-03-07

From: 52-2-88-7

Since last post: 7.4 years
Last activity: 7.3 years

Posted on 02-05-10 07:59:10 PM Link | Quote

Time/Date

02-05-10 01:59:10 PM

Posts

4224

Days Here

948

Level

95
Metal_Man88
Local Moderator
Cleaned up the post; for some reason, you said 'wheater' instead of 'weather.'

Nice information though, Messiaen.

____________________
Original Layout © Tobias Kelmandia
Me-me
340
Level: 41


Posts: 81/341
EXP: 461680
For next: 18465

Since: 08-05-07


Since last post: 9.7 years
Last activity: 8.1 years

Posted on 02-06-10 06:46:24 AM (last edited by Me-me at 02-06-10 04:13 AM) Link | Quote
Arguments 02, 0D and 0E, are probably how the water looks and moves. You've noticed that in dire dire docks the water is more blue than in jolly roger bay, right? And the water moves slowly inside area 2 of dire dire docks.

Nice find

____________________
Wow! SM64 is totally turned upside-down!
Mr. Game
Keep practicing, kid.
Level: 14


Posts: 11/30
EXP: 10987
For next: 2084

Since: 01-25-10


Since last post: 12.2 years
Last activity: 11.4 years

Posted on 02-06-10 10:49:09 AM Link | Quote
can you make some gameshark codes for changing the weather, messiaen??
minimaster58
Member
Level: 21


Posts: 26/75
EXP: 43426
For next: 6517

Since: 01-26-10


Since last post: 11.9 years
Last activity: 12.0 years

Posted on 02-06-10 02:24:15 PM Link | Quote
This is interesting, do you think one day we could add more than one effect to one level?
moma919
"No ROM links" isn't that hard to understand.
Level: 11


Posts: 17/19
EXP: 5539
For next: 446

Since: 01-23-10

From: Norway

Since last post: 12.2 years
Last activity: 11.5 years

Posted on 02-11-10 08:12:05 PM Link | Quote
If this is possible.... Then i just can't wait to next release!!!!!! -:-D
VL-Tone
Member
Super Mario 64 forum moderator
Level: 53


Posts: 564/621
EXP: 1135504
For next: 21615

Since: 07-27-07

From: Montreal, Canada

Since last post: 4.7 years
Last activity: 1.2 years

Posted on 02-14-10 04:24:09 AM Link | Quote
Time: One second ago - Date: Tomorrow - Weather: Sunshine - Mood: Moody Answer to the universe: Yes
I haven't been looking too much at the forum lately, and somehow overlooked this thread.

Very interesting find messiaen! There are still a lot of a little commands in the level and geo scripts that I never even tried to find what they were for, so there is still a lot of room for new things to be found simply by experimenting with script commands.

I've just integrated the weather effect parameter in the TT64 0.6b level importer. It would be harder to integrate it seamlessly into the main level editing interface (so you can edit weather effects for original levels) as the commands that are edited are only those from the level script.

It was planned originally that TT64 would be able to edit geo layout commands using the same interface (so you could edit things like colors, scale and other model properties). I still plan to allow this eventually, though it may be in a different module that also act as an individual model viewer.

____________________
Next newer thread | Next older thread
Jul - SM64 Hacking (Archive) - Changing Weather Effects New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

32 database queries.
Query execution time:  0.086617 seconds
Script execution time:  0.019706 seconds
Total render time:  0.106324 seconds


TidyHTML vomit below
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 2 column 300 - Warning: unescaped & or unknown entity "&page"
line 119 column 11 - Warning: <form> isn't allowed in <table> elements
line 118 column 10 - Info: <table> previously mentioned
line 120 column 11 - Warning: missing <tr>
line 120 column 119 - Warning: missing </font> before </td>
line 124 column 16 - Warning: plain text isn't allowed in <tr> elements
line 120 column 11 - Info: <tr> previously mentioned
line 125 column 68 - Warning: missing </nobr> before </td>
line 141 column 68 - Warning: missing </nobr> before <tr>
line 147 column 35 - Warning: missing <tr>
line 147 column 50 - Warning: missing </font> before </td>
line 148 column 37 - Warning: unescaped & or unknown entity "&id"
line 147 column 195 - Warning: missing </font> before </table>
line 149 column 35 - Warning: missing <tr>
line 149 column 50 - Warning: missing </font> before </td>
line 149 column 91 - Warning: missing </font> before </table>
line 156 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 158 column 9 - Warning: missing <tr>
line 176 column 13 - Warning: missing <tr>
line 177 column 101 - Warning: unescaped & or unknown entity "&postid"
line 209 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 211 column 9 - Warning: missing <tr>
line 229 column 13 - Warning: missing <tr>
line 230 column 101 - Warning: unescaped & or unknown entity "&postid"
line 236 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 238 column 9 - Warning: missing <tr>
line 256 column 13 - Warning: missing <tr>
line 257 column 101 - Warning: unescaped & or unknown entity "&postid"
line 259 column 74 - Warning: <style> isn't allowed in <td> elements
line 259 column 9 - Info: <td> previously mentioned
line 259 column 961 - Error: <z> is not recognized!
line 259 column 961 - Warning: discarding unexpected <z>
line 259 column 984 - Warning: discarding unexpected </z>
line 259 column 1010 - Error: <z> is not recognized!
line 259 column 1010 - Warning: discarding unexpected <z>
line 259 column 1017 - Warning: discarding unexpected </z>
line 259 column 1047 - Error: <z> is not recognized!
line 259 column 1047 - Warning: discarding unexpected <z>
line 259 column 1053 - Warning: discarding unexpected </z>
line 259 column 1079 - Error: <z> is not recognized!
line 259 column 1079 - Warning: discarding unexpected <z>
line 259 column 1084 - Warning: discarding unexpected </z>
line 264 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 266 column 9 - Warning: missing <tr>
line 284 column 13 - Warning: missing <tr>
line 285 column 101 - Warning: unescaped & or unknown entity "&postid"
line 292 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 294 column 9 - Warning: missing <tr>
line 312 column 13 - Warning: missing <tr>
line 313 column 101 - Warning: unescaped & or unknown entity "&postid"
line 318 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 320 column 9 - Warning: missing <tr>
line 338 column 13 - Warning: missing <tr>
line 339 column 101 - Warning: unescaped & or unknown entity "&postid"
line 344 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 346 column 9 - Warning: missing <tr>
line 364 column 13 - Warning: missing <tr>
line 365 column 101 - Warning: unescaped & or unknown entity "&postid"
line 370 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 372 column 9 - Warning: missing <tr>
line 390 column 13 - Warning: missing <tr>
line 391 column 101 - Warning: unescaped & or unknown entity "&postid"
line 393 column 74 - Warning: <style> isn't allowed in <td> elements
line 393 column 9 - Info: <td> previously mentioned
line 393 column 138 - Warning: missing </div>
line 402 column 17 - Warning: missing <tr>
line 402 column 17 - Warning: discarding unexpected <table>
line 405 column 35 - Warning: missing <tr>
line 405 column 50 - Warning: missing </font> before </td>
line 405 column 91 - Warning: missing </font> before </table>
line 407 column 35 - Warning: missing <tr>
line 407 column 50 - Warning: missing </font> before </td>
line 408 column 37 - Warning: unescaped & or unknown entity "&id"
line 407 column 195 - Warning: missing </font> before </table>
line 409 column 17 - Warning: discarding unexpected </textarea>
line 409 column 28 - Warning: discarding unexpected </form>
line 409 column 35 - Warning: discarding unexpected </embed>
line 409 column 43 - Warning: discarding unexpected </noembed>
line 409 column 53 - Warning: discarding unexpected </noscript>
line 409 column 64 - Warning: discarding unexpected </noembed>
line 409 column 74 - Warning: discarding unexpected </embed>
line 409 column 82 - Warning: discarding unexpected </table>
line 409 column 90 - Warning: discarding unexpected </table>
line 411 column 9 - Warning: missing </font> before <table>
line 423 column 25 - Warning: discarding unexpected </font>
line 432 column 37 - Warning: discarding unexpected </font>
line 410 column 1 - Warning: missing </center>
line 120 column 63 - Warning: <img> lacks "alt" attribute
line 125 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 125 column 93 - Warning: <img> lacks "alt" attribute
line 141 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 141 column 98 - Warning: <img> lacks "alt" attribute
line 148 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 245 - Warning: <img> proprietary attribute value "absmiddle"
line 161 column 22 - Warning: <img> lacks "alt" attribute
line 161 column 63 - Warning: <img> lacks "alt" attribute
line 161 column 111 - Warning: <img> lacks "alt" attribute
line 161 column 161 - Warning: <img> lacks "alt" attribute
line 172 column 15 - Warning: <img> lacks "alt" attribute
line 214 column 22 - Warning: <img> lacks "alt" attribute
line 214 column 63 - Warning: <img> lacks "alt" attribute
line 214 column 112 - Warning: <img> lacks "alt" attribute
line 214 column 162 - Warning: <img> lacks "alt" attribute
line 215 column 11 - Warning: <img> lacks "alt" attribute
line 225 column 15 - Warning: <img> lacks "alt" attribute
line 233 column 220 - Warning: <img> proprietary attribute value "absmiddle"
line 233 column 220 - Warning: <img> lacks "alt" attribute
line 240 column 17 - Warning: <img> proprietary attribute value "absmiddle"
line 240 column 17 - Warning: <img> lacks "alt" attribute
line 240 column 60 - Warning: <img> proprietary attribute value "absmiddle"
line 240 column 60 - Warning: <img> lacks "alt" attribute
line 240 column 103 - Warning: <img> proprietary attribute value "absmiddle"
line 240 column 103 - Warning: <img> lacks "alt" attribute
line 240 column 146 - Warning: <img> proprietary attribute value "absmiddle"
line 240 column 146 - Warning: <img> lacks "alt" attribute
line 240 column 189 - Warning: <img> proprietary attribute value "absmiddle"
line 240 column 189 - Warning: <img> lacks "alt" attribute
line 240 column 232 - Warning: <img> proprietary attribute value "absmiddle"
line 240 column 232 - Warning: <img> lacks "alt" attribute
line 240 column 275 - Warning: <img> proprietary attribute value "absmiddle"
line 240 column 275 - Warning: <img> lacks "alt" attribute
line 240 column 318 - Warning: <img> proprietary attribute value "absmiddle"
line 240 column 318 - Warning: <img> lacks "alt" attribute
line 240 column 361 - Warning: <img> proprietary attribute value "absmiddle"
line 240 column 361 - Warning: <img> lacks "alt" attribute
line 241 column 23 - Warning: <img> lacks "alt" attribute
line 241 column 64 - Warning: <img> lacks "alt" attribute
line 241 column 113 - Warning: <img> lacks "alt" attribute
line 241 column 163 - Warning: <img> lacks "alt" attribute
line 242 column 11 - Warning: <img> lacks "alt" attribute
line 252 column 15 - Warning: <img> lacks "alt" attribute
line 259 column 1517 - Warning: <img> lacks "alt" attribute
line 259 column 1727 - Warning: <img> lacks "alt" attribute
line 259 column 1815 - Warning: <img> lacks "alt" attribute
line 259 column 2059 - Warning: <img> lacks "alt" attribute
line 261 column 2446 - Warning: <img> lacks "alt" attribute
line 261 column 2635 - Warning: <img> lacks "alt" attribute
line 268 column 15 - Warning: <img> proprietary attribute value "absmiddle"
line 268 column 15 - Warning: <img> lacks "alt" attribute
line 268 column 58 - Warning: <img> proprietary attribute value "absmiddle"
line 268 column 58 - Warning: <img> lacks "alt" attribute
line 268 column 101 - Warning: <img> proprietary attribute value "absmiddle"
line 268 column 101 - Warning: <img> lacks "alt" attribute
line 268 column 144 - Warning: <img> proprietary attribute value "absmiddle"
line 268 column 144 - Warning: <img> lacks "alt" attribute
line 268 column 187 - Warning: <img> proprietary attribute value "absmiddle"
line 268 column 187 - Warning: <img> lacks "alt" attribute
line 268 column 230 - Warning: <img> proprietary attribute value "absmiddle"
line 268 column 230 - Warning: <img> lacks "alt" attribute
line 269 column 22 - Warning: <img> lacks "alt" attribute
line 269 column 63 - Warning: <img> lacks "alt" attribute
line 269 column 112 - Warning: <img> lacks "alt" attribute
line 269 column 162 - Warning: <img> lacks "alt" attribute
line 270 column 11 - Warning: <img> lacks "alt" attribute
line 280 column 15 - Warning: <img> lacks "alt" attribute
line 289 column 315 - Warning: <img> proprietary attribute value "absmiddle"
line 289 column 315 - Warning: <img> lacks "alt" attribute
line 297 column 22 - Warning: <img> lacks "alt" attribute
line 297 column 63 - Warning: <img> lacks "alt" attribute
line 297 column 112 - Warning: <img> lacks "alt" attribute
line 297 column 162 - Warning: <img> lacks "alt" attribute
line 298 column 11 - Warning: <img> lacks "alt" attribute
line 308 column 15 - Warning: <img> lacks "alt" attribute
line 323 column 22 - Warning: <img> lacks "alt" attribute
line 323 column 63 - Warning: <img> lacks "alt" attribute
line 323 column 112 - Warning: <img> lacks "alt" attribute
line 323 column 162 - Warning: <img> lacks "alt" attribute
line 324 column 11 - Warning: <img> lacks "alt" attribute
line 334 column 15 - Warning: <img> lacks "alt" attribute
line 349 column 22 - Warning: <img> lacks "alt" attribute
line 349 column 63 - Warning: <img> lacks "alt" attribute
line 349 column 112 - Warning: <img> lacks "alt" attribute
line 349 column 162 - Warning: <img> lacks "alt" attribute
line 350 column 11 - Warning: <img> lacks "alt" attribute
line 360 column 15 - Warning: <img> lacks "alt" attribute
line 375 column 22 - Warning: <img> lacks "alt" attribute
line 375 column 63 - Warning: <img> lacks "alt" attribute
line 375 column 112 - Warning: <img> lacks "alt" attribute
line 375 column 162 - Warning: <img> lacks "alt" attribute
line 386 column 15 - Warning: <img> lacks "alt" attribute
line 393 column 694 - Warning: <img> lacks "alt" attribute
line 399 column 2613 - Warning: <img> lacks "alt" attribute
line 399 column 2772 - Warning: <img> lacks "alt" attribute
line 408 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 408 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 408 column 245 - Warning: <img> proprietary attribute value "absmiddle"
line 417 column 25 - Warning: <img> lacks "alt" attribute
line 422 column 267 - Warning: <img> lacks "alt" attribute
line 149 column 50 - Warning: trimming empty <font>
line 402 column 17 - Warning: trimming empty <tr>
line 405 column 50 - Warning: trimming empty <font>
line 125 column 68 - Warning: <nobr> is not approved by W3C
line 141 column 68 - Warning: <nobr> is not approved by W3C
line 177 column 27 - Warning: <nobr> is not approved by W3C
line 230 column 27 - Warning: <nobr> is not approved by W3C
line 257 column 27 - Warning: <nobr> is not approved by W3C
line 259 column 1596 - Warning: <td> proprietary attribute "background"
line 259 column 1896 - Warning: <td> proprietary attribute "background"
line 259 column 2149 - Warning: <table> proprietary attribute "height"
line 261 column 2527 - Warning: <td> proprietary attribute "background"
line 285 column 27 - Warning: <nobr> is not approved by W3C
line 313 column 27 - Warning: <nobr> is not approved by W3C
line 339 column 27 - Warning: <nobr> is not approved by W3C
line 365 column 27 - Warning: <nobr> is not approved by W3C
line 391 column 27 - Warning: <nobr> is not approved by W3C
line 393 column 158 - Warning: <table> proprietary attribute "height"
line 393 column 223 - Warning: <td> proprietary attribute "background"
line 393 column 319 - Warning: <td> proprietary attribute "background"
line 393 column 409 - Warning: <table> proprietary attribute "height"
line 393 column 489 - Warning: <td> proprietary attribute "background"
line 393 column 1434 - Warning: <td> proprietary attribute "background"
Info: Document content looks like HTML5
Info: No system identifier in emitted doctype
Tidy found 205 warnings and 4 errors!

The alt attribute should be used to give a short description
of an image; longer descriptions should be given with the
longdesc attribute which takes a URL linked to the description.
These measures are needed for people using non-graphical browsers.

For further advice on how to make your pages accessible
see http://www.w3.org/WAI/GL.
You are recommended to use CSS to specify the font and
properties such as its size and color. This will reduce
the size of HTML files and make them easier to maintain
compared with using <FONT> elements.

You are recommended to use CSS to control line wrapping.
Use "white-space: nowrap" to inhibit wrapping in place
of inserting <NOBR>...</NOBR> into the markup.

About HTML Tidy: https://github.com/htacg/tidy-html5
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
Validate your HTML documents: http://validator.w3.org/nu/
Lobby your company to join the W3C: http://www.w3.org/Consortium

Do you speak a language other than English, or a different variant of
English? Consider helping us to localize HTML Tidy. For details please see
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md