Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 03:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Is it possible to disable snowfall animation?

Discussion on Is it possible to disable snowfall animation? within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2007
Posts: 19
Received Thanks: 1
Question Is it possible to disable snowfall animation?

I Would like to turn off this animation just for myself.
if it is possible, would someone explain how to do this?

thank you in advance
scheiße is offline  
Old 12/15/2020, 06:43   #2
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,482
Quote:
Originally Posted by scheiße View Post
I Would like to turn off this animation just for myself.
if it is possible, would someone explain how to do this?

thank you in advance
Nein das is via Datenbank kannst du nicht selbst deaktivieren
NorseGodTyr is offline  
Thanks
1 User
Old 12/15/2020, 12:47   #3
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 686
If the client is not protected you can patch the weather update handler and force the client to see every weather as clear sky.



This code overwrites an unknown weather type with a clear sky.

The original code presumably looks something like this:
Code:
if(byWeatherType != WEATHER_TYPE_CLEAR && byWeatherType != WEATHER_TYPE_RAIN && byWeatherType != WEATHER_TYPE_SNOW)
    byWeatherType = WEATHER_TYPE_CLEAR;
You can NOP the 1st and 2nd highlighted line to force Snow to be disabled.
You can NOP the 3rd and 4th highlighted line to force Rain to be disabled.

If you don't understand this you can use x32dbg to and use this patch file .
DaxterSoul is offline  
Thanks
3 Users
Old 12/15/2020, 17:09   #4
 
elite*gold: 0
Join Date: Oct 2007
Posts: 19
Received Thanks: 1
i just tried it and it works just fine. thank you very much for sharing
scheiße is offline  
Old 12/15/2020, 21:35   #5
 
GameRPoP's Avatar
 
elite*gold: 0
Join Date: Sep 2020
Posts: 122
Received Thanks: 64
Quote:
Originally Posted by scheiße View Post
i just tried it and it works just fine. thank you very much for sharing
How did you make your test? Is it by gm console commands or by amplifying the data in the RefClimate table from the database?
GameRPoP is offline  
Old 12/16/2020, 08:50   #6
 
elite*gold: 0
Join Date: Oct 2007
Posts: 19
Received Thanks: 1
Quote:
Originally Posted by GameRPoP View Post
How did you make your test? Is it by gm console commands or by amplifying the data in the RefClimate table from the database?

I'll be honest with you, i dont know what you're talking about
i changed it in the sro_client just like DaxterSoul explained it.
i just wanted to disable snowfall for me on a p-server im playing on.
scheiße is offline  
Old 12/18/2020, 14:05   #7
 
elite*gold: 0
Join Date: Sep 2014
Posts: 23
Received Thanks: 4
how did u disabled the snowfall ? Please can i have more details? i don`t know anything about codes and that... how do you do?
codrincod is offline  
Old 12/19/2020, 17:48   #8
 
elite*gold: 0
Join Date: Apr 2010
Posts: 474
Received Thanks: 172
Quote:
Originally Posted by DaxterSoul View Post
If the client is not protected you can patch the weather update handler and force the client to see every weather as clear sky.



This code overwrites an unknown weather type with a clear sky.

The original code presumably looks something like this:
Code:
if(byWeatherType != WEATHER_TYPE_CLEAR && byWeatherType != WEATHER_TYPE_RAIN && byWeatherType != WEATHER_TYPE_SNOW)
    byWeatherType = WEATHER_TYPE_CLEAR;
You can NOP the 1st and 2nd highlighted line to force Snow to be disabled.
You can NOP the 3rd and 4th highlighted line to force Rain to be disabled.

If you don't understand this you can use x32dbg to and use this patch file .


Daxter thanks for the explanation, however I'm not able to do this manually. The patch file works, but I'd like to understand what I'm doing wrong.

The steps I'm doing right now are:
1.) Search for all referenced text in all the modules.
2.) Search for "Snow"
3.) Follow "Snow" in Disassembler

4.) Select the whole area

5.) And NOP them


However the client won't launch after I've done this. What am I doing wrong?

I see that your .1337 file only patches 4 addresses, but I don't understand how you actually got to those 4.
confict is offline  
Old 12/19/2020, 19:19   #9
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 686
Quote:
Originally Posted by confict View Post
Daxter thanks for the explanation, however I'm not able to do this manually. The patch file works, but I'd like to understand what I'm doing wrong.

The steps I'm doing right now are:
1.) Search for all referenced text in all the modules.
2.) Search for "Snow"
3.) Follow "Snow" in Disassembler

4.) Select the whole area

5.) And NOP them


However the client won't launch after I've done this. What am I doing wrong?

I see that your .1337 file only patches 4 addresses, but I don't understand how you actually got to those 4.
The text references you found are actually the GM commands. You're probably breaking the CIFConsole initialization code with your NOPs hence the crash.

The "Snow, Rain, Clear" labels are not text references. They're basically comments from me to highlight what the constants compared against stand for.

The easiest way to find the handler is by it's opcode. So you search for a constant, 0x3809 in this case, which will bring you to a place that looks like this:


The function that registers the packet handlers takes two parameters. One being the opcode to know when to call the handler. The other being the function that will be called when such a packet is received. So we'll follow the address like this:


Now you should've arrived at the handler function shown in my first post.
DaxterSoul is offline  
Thanks
1 User
Old 12/19/2020, 22:08   #10
 
elite*gold: 0
Join Date: Apr 2010
Posts: 474
Received Thanks: 172
Quote:
Originally Posted by DaxterSoul View Post
The text references you found are actually the GM commands. You're probably breaking the CIFConsole initialization code with your NOPs hence the crash.

The "Snow, Rain, Clear" labels are not text references. They're basically comments from me to highlight what the constants compared against stand for.

The easiest way to find the handler is by it's opcode. So you search for a constant, 0x3809 in this case, which will bring you to a place that looks like this:


The function that registers the packet handlers takes two parameters. One being the opcode to know when to call the handler. The other being the function that will be called when such a packet is received. So we'll follow the address like this:


Now you should've arrived at the handler function shown in my first post.
Ah that figures! Thanks so much for the explanation.
confict is offline  
Old 12/28/2020, 14:10   #11
 
Exner.'s Avatar
 
elite*gold: 5
Join Date: Jul 2020
Posts: 183
Received Thanks: 54
Quote:
Originally Posted by DaxterSoul View Post
If the client is not protected you can patch the weather update handler and force the client to see every weather as clear sky.



This code overwrites an unknown weather type with a clear sky.

The original code presumably looks something like this:
Code:
if(byWeatherType != WEATHER_TYPE_CLEAR && byWeatherType != WEATHER_TYPE_RAIN && byWeatherType != WEATHER_TYPE_SNOW)
    byWeatherType = WEATHER_TYPE_CLEAR;
You can NOP the 1st and 2nd highlighted line to force Snow to be disabled.
You can NOP the 3rd and 4th highlighted line to force Rain to be disabled.

If you don't understand this you can use x32dbg to and use this patch file .
Can I do sky constancy only one thing like night It does not change
Exner. is offline  
Reply

Tags
animation, christmas, silkroad, snow, weather effect


Similar Threads Similar Threads
[Animation] Cartoon-Animation für Skater Dave
09/02/2013 - Artist Showcase - 7 Replies
Hallo, hier könnt ihr euch das Intro für das iOS-Spiel "Downhill Skating - Skater Dave" ansehen, das ich animiert habe: http://www.flashfilmchen.de/werbung/dave_web_gros s.jpg Viel Spaß, Dennis Hauck
ANIMATION || Short Minecraft Animation || MB
03/14/2012 - Minecraft - 4 Replies
Hallo liebe Community, Heute zeige ich Euch meine bisher dritte Animation aus den bereich Minecraft. Die Animation ist mit Blender gerendert. Bei genug anfragen wird es mehr Animationen geben. Link : Minecraft - Short Animation - YouTube Viel spaß
need help> disable animation on mob when aoe
09/21/2009 - 12Sky2 - 3 Replies
Hi guys, I am wondering if there is a way to disable the purple circle that is activated when you are aoeing a monster in 12sky2. Any tips on how to do this? Thanks.



All times are GMT +1. The time now is 03:10.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.