5/2/2024 0 Comments Metin2 forumsOf course there might also be the possibility to go even deeper and write a script that will modify the built game permanently. Of course lightbaking and stuff like that needs to be done in the Unity editor so your patcher script gets a built lightmap to work with.ģc) If you want to swap out the model of a character: Again, check at scene startup or game startup which charactermodel should be loaded. Chances are, if you build a multiplayer game, this information is mastered on the server anyway, so no need for patching.ģb) If you want to change a scene: Build up the scene in a way that will preload most scene information from the latest patch file, and create the scene on the fly. Write that stats to a local DB or file (encrypt it if you want to prevent the player from having an easy way to cheat). but you could build the scene in a way that makes it easy.ģa) lets say you want to tweak your weaponstats a lot. I am NOT sure you can change a scene that got built just like that. Now, I am threading in murky waters for me. This Patcher will start a host of scripts, that use the Unity networking layer to contact your server, check if a new patch is available, and then download your patch (which is just a unity package containing all the new 3D Models, Audio, Textures, and the Patch scripts that do the grunt work of updating the built game).ģ) Then the patch scripts get started. This could be as an additional scene in your build or as complex as a separate c++ program that will call your built game once the patcher is done.Ģ) If we go with the simple Route, you would build a simple additional scene that would show the patcher GUI with the patch download and install status (and is fabulous place to sneak in some advertisments, if you want to go that route). Wait, what are you trying to achive here? You don't want to rebuild the game when you fully change scenes, add 3D Models and so on? You want to able to change the client without changing the server?Īfter thingking somewhat about your problem here, I got some ideas how it COULD work in Unity (be aware most of this is untested as I never come close to needing a patcher yet).ġ) What you first need is a patcher process. You are talking about updating the values of Items, but not fully swap out graphical objects, change scenes and stuff like that? Or you want to completly change scenes without swapping out the "exe"? This is just information to update the client with. sounds not like this is something Unity comes prebuilt with, but maybe I misunderstand things.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |