GuruGuru Posted September 7, 2017 Author Share Posted September 7, 2017 (edited) I've fixed! Bug fix and improvement: I've added the skies models without replacing and then was fixed this ped issue. I can't explain how........ Download bellow also includes fixed .txd files (DXT5): https://drive.google.com/file/d/0B1sAJQAUfOOYS3JTWV9EZl83VWc/view Check now the mod files, I've added some explanations and it's recommended to use Open Limit Adjuster (or configure fastman92 limit adjuster to add new col files); Updated post on MixMods. Now the mod is almost perfect Lol thanks senpai ,you should have asked for source code anyways (it's a mess,but at least its better than edit a low-level code). I added the remaining skies and source code so may want to edit your post on MixMods It would be perfect to exploit this to avoid stuff like this IMO, you should lower the number of stars in city area, it looks weird that ls has Soo much stars at night because the city has so much lights, therefore so much stars doesn't look real... Areas having no light such as country side with stars at night is ok... Can you add rainbow in SA??? The default one is sh*t, hope you will remade it.. Only suggestion! Yeah,I was thinking the same thing about the stars too ,but I'm to lazy to edit the textures by hand,I only removed the bloomy effect of the stars on cities. Anyways,feel free to edit them by yourself and if you do,post them here About the rainbows ,no cuz they gay, yeah that sounds cool,I may add it if I had a texture for it... Edited September 7, 2017 by guru_guru kkjj 1 Link to comment Share on other sites More sharing options...
kkjj Posted September 7, 2017 Share Posted September 7, 2017 I will do.. Link to comment Share on other sites More sharing options...
Gramps Posted September 9, 2017 Share Posted September 9, 2017 (edited) So if its not dependent on P2DFX anymore, what controls the distance? I managed to get a quick test in, and noticed clouds/stars appearing in front of buildings Also, are the default SA clouds still rendered? On the third screenshot you can see the two stars that are going through the tower in the background. Ignore the corona going through CJ, I think thats a bug from a different mod. Edited September 9, 2017 by Gramps The Implex and GuruGuru 2 Link to comment Share on other sites More sharing options...
GuruGuru Posted September 9, 2017 Author Share Posted September 9, 2017 I found some addresses that stores current draw distance,so it's controlled by the game, a mix between current timecyc Farclp and player z position. About the clouds going through the buildings,I am almost sure that can be fixed tweaking the ide flags. I'll look into it today. I haven't touch default clouds. Gramps 1 Link to comment Share on other sites More sharing options...
XaosOfficial Posted September 10, 2017 Share Posted September 10, 2017 (edited) Beautiful modification! Edited September 10, 2017 by XaosOfficial GuruGuru 1 Link to comment Share on other sites More sharing options...
Gramps Posted September 10, 2017 Share Posted September 10, 2017 About the clouds going through the buildings,I am almost sure that can be fixed tweaking the ide flags. I'll look into it today.Unsure if this would work. I think they're already set to 9999. GuruGuru 1 Link to comment Share on other sites More sharing options...
GuruGuru Posted September 11, 2017 Author Share Posted September 11, 2017 About the clouds going through the buildings,I am almost sure that can be fixed tweaking the ide flags. I'll look into it today. Unsure if this would work. I think they're already set to 9999.nope, that's object draw distance. Flags are represented with the last value.Some objects on SA gets rendered like this (http://i.imgur.com/oUdnv2o.png) and I'm almost sure that happens because wrong flags are set Link to comment Share on other sites More sharing options...
Junior_Djjr Posted September 11, 2017 Share Posted September 11, 2017 (edited) It's viable to disable SA default clouds? It didn't bother me much, but I think it would be good. As so SA default clouds drops FPS and are ugly. From Mix Sets: // Disable low clouds0A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 // Disable volumetric clouds (high clouds when you're flying)0A8C: write_memory 0x53E1B4 size 5 value 0x90 vp 1And to disable stars (AND MOON, I'm lazy to disable just stars and not moon. Re-put moon manually by corona is easy btw, but not too recommended) // Disable sky stuff0A8C: write_memory 0x53DCA2 size 5 value 0x90 vp 1 0A8C: write_memory 0x53DFA0 size 5 value 0x90 vp 10A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 If there was any way for a object to always be drawn after all objects (ignoring who is in front), your problem will be totally solved. Edited September 11, 2017 by Junior_Djjr GuruGuru and Gramps 2 Link to comment Share on other sites More sharing options...
GuruGuru Posted September 11, 2017 Author Share Posted September 11, 2017 It's viable to disable SA default clouds? It didn't bother me much, but I think it would be good. As so SA default clouds drops FPS and are ugly. From Mix Sets: // Disable low clouds0A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 // Disable volumetric clouds (high clouds when you're flying)0A8C: write_memory 0x53E1B4 size 5 value 0x90 vp 1And to disable stars (AND MOON, I'm lazy to disable just stars and not moon. Re-put moon manually by corona is easy btw, but not too recommended) // Disable sky stuff0A8C: write_memory 0x53DCA2 size 5 value 0x90 vp 1 0A8C: write_memory 0x53DFA0 size 5 value 0x90 vp 10A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 If there was any way for a object to always be drawn after all objects (ignoring who is in front), your problem will be totally solved. Thanks, I was about to add these functions too but the after decompiling Mix Sets it gave me some weirds values at those addresses (8 bytes values if I recall...) .Also ,5 bytes? I thought you could write 1,2 or 4 bytes. Gramps 1 Link to comment Share on other sites More sharing options...
Crspy Posted September 11, 2017 Share Posted September 11, 2017 (edited) Thanks, I was about to add these functions too but the after decompiling Mix Sets it gave me some weirds values at those addresses (8 bytes values if I recall...) .Also ,5 bytes? I thought you could write 1,2 or 4 bytes. Actually it acts like a memory filling function when you pass 1 Byte ( like 0x90 ) and the size is something higher than Dword , as you can see in the Default Case. so if you did something like that > 0A8C: write_memory 0x53E121 size 8 value 0x90 vp 1 it will fill the memory with 0x9090909090909090 OpcodeResult __stdcall opcode_0A8C(CRunningScript *thread){ GetScriptParams(thread, 4); void *Address = opcodeParams[0].pParam; DWORD size = opcodeParams[1].dwParam; DWORD value = opcodeParams[2].dwParam; bool vp = opcodeParams[3].bParam; switch (size) { default: GetInstance().CodeInjector.MemoryWrite<BYTE>(Address, value, vp, size); break; case 2: GetInstance().CodeInjector.MemoryWrite<WORD>(Address, value, vp); break; case 4: GetInstance().CodeInjector.MemoryWrite<DWORD>(Address, value, vp); break; } return OR_CONTINUE;} Edited September 11, 2017 by Crspy GuruGuru 1 Link to comment Share on other sites More sharing options...
GuruGuru Posted September 11, 2017 Author Share Posted September 11, 2017 ^^^ Oh cool, that may come in handy later Link to comment Share on other sites More sharing options...
mione Posted September 14, 2017 Share Posted September 14, 2017 Any reason why this doesn't work for me? I dragged everything in the modloader folder, modloader logs show that everything is being imported/injected but I still have vanilla clouds. I'm using it on SA-MP, by the way. GuruGuru 1 Link to comment Share on other sites More sharing options...
Gramps Posted September 14, 2017 Share Posted September 14, 2017 Newopcodes? Link to comment Share on other sites More sharing options...
mione Posted September 14, 2017 Share Posted September 14, 2017 (edited) Using the one Junior_Djjr linked in his fix/update of this mod: https://drive.google.com/file/d/0B1sAJQAUfOOYckxKaVZ4NjZJa1U/view So that's not causing it. Edited September 14, 2017 by mione Link to comment Share on other sites More sharing options...
GuruGuru Posted September 14, 2017 Author Share Posted September 14, 2017 Any reason why this doesn't work for me? I dragged everything in the modloader folder, modloader logs show that everything is being imported/injected but I still have vanilla clouds. I'm using it on SA-MP, by the way. I mostly did this for SP so idk. Use ScrLog, search thread 'nube' and post its log here (inside a spoiler please) But,AFAIK, previous versions worked fine with samp and that could be because I was using SA models instead of added models.You could try changing the IDs in the .ini (and ofcourse,change the filename of the skies accordingly) Link to comment Share on other sites More sharing options...
MatthewFarrell Posted September 14, 2017 Share Posted September 14, 2017 Clouds in mirrors lel The Implex, GuruGuru and Rachel Amber 3 Link to comment Share on other sites More sharing options...
Gramps Posted September 14, 2017 Share Posted September 14, 2017 If there was any way for a object to always be drawn after all objects (ignoring who is in front), your problem will be totally solved.Onyx uses a skybox for his V2SAxIV2SA. Doesn't appear to have this bug? Maybe could ask him how he did it.. Link to comment Share on other sites More sharing options...
Junior_Djjr Posted September 15, 2017 Share Posted September 15, 2017 (edited) ↑ this can be "fixed" increasing draw distance (mainly fog distance). It isn't a real fix btw. Maybe some more experienced guy can have a solution as I said above, apparently it is easily possible, but I don't know how. @MatthewFarrell Damn, SkyBox need to be disabled at interiors Edited September 15, 2017 by Junior_Djjr GuruGuru 1 Link to comment Share on other sites More sharing options...
GuruGuru Posted September 15, 2017 Author Share Posted September 15, 2017 (edited) @MatthewFarrell Ooops,the skyboxes weren't deleted inside interiors (so if you saved inside,I may have f*cked up your save,sorry for that) Anyways,I fixed this with the new version. On other news,maybe I should start using actual skyboxes (and probably change the name of this mod to Better Skydome too) because from what I've seen, SA renders everything in a cube. This could fix (or at least make it less noticeable) the clouds and stars going through buildings... Edited September 15, 2017 by guru_guru Rachel Amber and LaDiDa 2 Link to comment Share on other sites More sharing options...
Gramps Posted September 15, 2017 Share Posted September 15, 2017 (edited) @Junior Does MixMods also remove the same clouds as SkyGFX? disableClouds=1 ; Disable the far clouds on the horizon. They're bugged on the PS2. (cannot be toggled at runtime) From Mix Sets: // Disable low clouds0A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 // Disable volumetric clouds (high clouds when you're flying)0A8C: write_memory 0x53E1B4 size 5 value 0x90 vp 1And to disable stars (AND MOON, I'm lazy to disable just stars and not moon. Re-put moon manually by corona is easy btw, but not too recommended)// Disable sky stuff0A8C: write_memory 0x53DCA2 size 5 value 0x90 vp 1 0A8C: write_memory 0x53DFA0 size 5 value 0x90 vp 10A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 Edited September 15, 2017 by Gramps Link to comment Share on other sites More sharing options...
Junior_Djjr Posted September 16, 2017 Share Posted September 16, 2017 (edited) On other news,maybe I should start using actual skyboxes (and probably change the name of this mod to Better Skydome too) because from what I've seen, SA renders everything in a cube. This could fix (or at least make it less noticeable) the clouds and stars going through buildings... But is not the object rotating for the rotating clouds? And even profissional game developers call this "skybox" even if isn't a box. It's very common. As so generally isn't a dome but a sphere, and we never read people saying "skysphere". @Junior Does MixMods also remove the same clouds as SkyGFX? disableClouds=1 ; Disable the far clouds on the horizon. They're bugged on the PS2. (cannot be toggled at runtime) From Mix Sets: // Disable low clouds0A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 // Disable volumetric clouds (high clouds when you're flying)0A8C: write_memory 0x53E1B4 size 5 value 0x90 vp 1And to disable stars (AND MOON, I'm lazy to disable just stars and not moon. Re-put moon manually by corona is easy btw, but not too recommended) // Disable sky stuff0A8C: write_memory 0x53DCA2 size 5 value 0x90 vp 1 0A8C: write_memory 0x53DFA0 size 5 value 0x90 vp 10A8C: write_memory 0x53E121 size 5 value 0x90 vp 1 No, I didn't remember that either.MixMods, ha. Edited September 16, 2017 by Junior_Djjr Link to comment Share on other sites More sharing options...
jrnaufal2 Posted October 2, 2017 Share Posted October 2, 2017 Support imvehft 2.1.1? Link to comment Share on other sites More sharing options...
Finn The Human Posted October 3, 2017 Share Posted October 3, 2017 Support imvehft 2.1.1? It will crash the game in the evening The Implex and GuruGuru 2 Link to comment Share on other sites More sharing options...
natanplayer Posted October 27, 2017 Share Posted October 27, 2017 how to fix it? Link to comment Share on other sites More sharing options...
LaDiDa Posted October 27, 2017 Share Posted October 27, 2017 Not (yet). It's being looked into by the author though. Link to comment Share on other sites More sharing options...
GuruGuru Posted October 29, 2017 Author Share Posted October 29, 2017 how to fix it? As LaDiDa said,no fix for that yet.But increasing draw distance helps. Rachel Amber 1 Link to comment Share on other sites More sharing options...
GuruGuru Posted November 14, 2017 Author Share Posted November 14, 2017 updoot -rewritten from the scratch to Lua so you'll need MoonLoader And MoonAditions.Added a few improvements too so the script should be faster than before. -skies gets deleted when you are about to save your game,so now it's compatible with "auto-save" mods I'll change the OP later. Also , SA-MP version. (not tested) Jinx., EternalFlakko, DK22Pac and 1 other 4 Link to comment Share on other sites More sharing options...
DK22Pac Posted November 14, 2017 Share Posted November 14, 2017 Good, finally people understand that SCM is an outdated technology for creating complex mods. Note/Next step: learn programming and shaders and create even better skybox. The Implex, GuruGuru and Apu889 3 Link to comment Share on other sites More sharing options...
GuruGuru Posted November 14, 2017 Author Share Posted November 14, 2017 Lol,I'm pretty sure I don't represent the people who make scripts mods.But I think that only a few will start to use more updated tools to create these. I've seen a lot of people starting to code with SCM while a better alternative to this is GTA3script. Anyways,I problably won't start soon but I would love some directions on the Next step. Even better skybox. This is going to be name for the next version lmao. LaDiDa and kkjj 2 Link to comment Share on other sites More sharing options...
LaDiDa Posted November 14, 2017 Share Posted November 14, 2017 Seperate skies per weather type as defined in timecyc.dat (sunny, extra sunny, cloudy, rainy). Maybe some textures that don't show jpeg artifacts on darker colors. EternalFlakko 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now