Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Better Skybox


GuruGuru
 Share

Recommended Posts

Timecyc changes between weathers really often sometimes (sunny to exsunny to sunny to exsunny...). It would look really weird to change between textures every hour.

 

Most skybox textures I found had a bit of noise,so there's nothing much to do about it ¯\_(ツ)_/¯.

Link to comment
Share on other sites

  • 2 weeks later...

why this skybox don't work for me? i have cleo, newopcodes, modloader, project (sa-mp)

i get only vanila clouds

Edited by Xenavi
Link to comment
Share on other sites

project (sa-mp)

That's your problem.

Still,check the OP and see if it works the new version.If not,well,too bad :)

 

Also,new and more decent OP and a small fix to the script.

Link to comment
Share on other sites

MoonLoader doesn't have function to check if is in SA-MP?

If not:

  • Load "kernel32" library;
  • Get "GetModuleHandleA" procedure;
  • Call it sending "SAMP.dll";
  • Check the return value.

So you can have both SAMP and non-SAMP versions installed at the same time, even using the same .lua file.

Edited by Junior_Djjr
Link to comment
Share on other sites

  • 2 weeks later...

MoonLoader doesn't have function to check if is in SA-MP?

 

If not:

  • Load "kernel32" library;
  • Get "GetModuleHandleA" procedure;
  • Call it sending "SAMP.dll";
  • Check the return value.

So you can have both SAMP and non-SAMP versions installed at the same time, even using the same .lua file.

 

idk why i didn't think of this before,thanks.

 

 

Que impresionante compa, que bien programado.

 

No es taan impresionante realmente.Si le das una ojeada al código te darás cuenta

 

 

 

New update with a few vital fixes,pls redownload

Edited by guru_guru
Link to comment
Share on other sites

As reported in comments, the object collision was not disabled... A guy said there is an "invisible wall" bellow the plane. (on SAMP, at least)

I recommend to disable the collision to each frame to force it.

 

You noped 0x53DCA2 twice (nothing important...)

 

As you know, BS also disables the moon (NOPs at 0x53DCA2 and 0x53DFA0). To disable just the stars and keep the moon (and some other things?), instead of this, just write "0" (byte) in:

0x713F1A - so will render "0" stars, but it's a "do-while" loop, then will keep 1 star, so 0x713EE7 - and there is a special star, so we need also 0x713FED.

 

Then you have the moon without stars with a simple way without patching at all :p

  • Like 2
Link to comment
Share on other sites

As reported in comments, the object collision was not disabled... A guy said there is an "invisible wall" bellow the plane. (on SAMP, at least)

I recommend to disable the collision to each frame to force it.

 

that's weird.

but i don't feel like doing that just for this one dude.

Edited by guru_guru
Link to comment
Share on other sites

 

As reported in comments, the object collision was not disabled... A guy said there is an "invisible wall" bellow the plane. (on SAMP, at least)

I recommend to disable the collision to each frame to force it.

 

that's weird.

but i don't feel like doing that just for this one dude.

 

It is difficult to know how many other people go through this problem, still seeing that for laypeople an invisible wall has nothing to do with a sky, so they would be confused without knowing which mod is doing it and will not report, besides dependent from the sky, there are large and small collisions, some collisions should not be noticed, confusing even more.

 

I think you could do this for some upcoming update, even more that set on each frame there is absolutely no performance effect, all this opcode does is apply a flag on the object, just a bitwise, an extremely simple and fast operation that fixes a bug, even if it's rare.

Link to comment
Share on other sites

 

As reported in comments, the object collision was not disabled... A guy said there is an "invisible wall" bellow the plane. (on SAMP, at least)

I recommend to disable the collision to each frame to force it.

 

that's weird.

but i don't feel like doing that just for this one dude.

 

I can confirm this bug too.

Link to comment
Share on other sites

 

 

As reported in comments, the object collision was not disabled... A guy said there is an "invisible wall" bellow the plane. (on SAMP, at least)

I recommend to disable the collision to each frame to force it.

that's weird.

but i don't feel like doing that just for this one dude.

I can confirm this bug too.

Only in SA-MP or also SP?

Link to comment
Share on other sites

 

Drag and drop after installing all essential plugins listed :p

I have all but is still not work

Send me your moonloader.log

Link to comment
Share on other sites

Why better skybox doesn't have 4 time version (4 dff and 4 txd)?

Cuz 15 > 4

 

If you don't like that many skies you can just repeat the IDs.

Link to comment
Share on other sites

Without SkyGfx looks ugly (like in paint (screenshot here), with SAMP!). Any solutions to have this great skybox without Skygfx?
I don't like skygfx because is not working with sampfuncs.asi.

 

Maybe If you give me a solution to change time in SAMP without a mod based on sampfuncs.asi, I will forget about this sampfuncs.

I want it to be day in game all time.

Edited by MBT
Link to comment
Share on other sites

Without SkyGfx looks ugly (like in paint (screenshot here), with SAMP!). Any solutions to have this great skybox without Skygfx?

I don't like skygfx because is not working with sampfuncs.asi.

 

Maybe If you give me a solution to change time in SAMP without a mod based on sampfuncs.asi, I will forget about this sampfuncs.

I want it to be day in game all time.

 

SilentPatch has dual pass too,so you can use that instead of Skygfx.

 

IIRC, MoonLoader has sampfuncs ,so could try with that.

Link to comment
Share on other sites

 

Without SkyGfx looks ugly (like in paint (screenshot here), with SAMP!). Any solutions to have this great skybox without Skygfx?

I don't like skygfx because is not working with sampfuncs.asi.

 

Maybe If you give me a solution to change time in SAMP without a mod based on sampfuncs.asi, I will forget about this sampfuncs.

I want it to be day in game all time.

SilentPatch has dual pass too,so you can use that instead of Skygfx.

 

IIRC, MoonLoader has sampfuncs ,so could try with that.

 

Working with silentpatch, but when I put sampfuncs, i have the same problem

 

off-topic: removed sampfuncs.asi and I put setWeather&Time.lua in moonloader and I get crash, maybe you can help me.

Link to comment
Share on other sites

Is ModLoader necessary?

I am thinking about replacing OpenLimitsAdjuster with some other limit breaking plugins that I am currently using(because the test I conducted previously indicated they are more effective).

Link to comment
Share on other sites

It shouldn't be, placing them within gta3.img should work just fine, but modloader is more organized with lots of mods and allows switching between mods that replace the same files on the fly.

Link to comment
Share on other sites

I installed all of them except OpenLimitAdjuster and SkyGFX(I use Silent's Patch instead) in ModLoader but there was no effect. Perhaps it's incompatible with custom timecyc and cloud particle. BTW I have also installed SRt3 Mipmap 2014 previously. Anyway I will test this plugin on a clean copy of GTASA later.

 

Edit: Succeeded on clean GTASA. Now trying to make it works with modified version.

Edit2: Succeeded on modified GTASA. For now the only problem is that I can't find the moon at night.

Edited by zqh9843
Link to comment
Share on other sites

I installed all of them except OpenLimitAdjuster and SkyGFX(I use Silent's Patch instead) in ModLoader but there was no effect. Perhaps it's incompatible with custom timecyc and cloud particle. BTW I have also installed SRt3 Mipmap 2014 previously. Anyway I will test this plugin on a clean copy of GTASA later.

 

Edit: Succeeded on clean GTASA. Now trying to make it works with modified version.

Edit2: Succeeded on modified GTASA. For now the only problem is that I can't find the moon at night.

Better Skybox® by default tries to load customs IDs on SinglePlayer, that's why it doesn't work if Open Limit Adjuster isn't installed.You can change these IDs by editing the settings on the script itself (betterskybox.lua) with notepad.
Link to comment
Share on other sites

What timecyc and particle are you using in the screenshots? :whistle:

PS2 timecyc in the logo, Skyline Timecyc in the OP and iirc, True Skies Timecyc 2.0 on the imgur album.

 

 

 

hello.

 

Why can't I see skybox? I think I've done everyhting properly.

 

Thank you in advance

Idk,you probably messed up the required mods installation.

Link to comment
Share on other sites

After saving game with this mod then remove this mod and load the save game, the game did crash and I realized this mod actually didn't delete sky objects properly.

I didn't realized loading invalid models from save games crashes the game until then, though. So I uploaded a fixed version.

http://www.mediafire.com/file/bsoe322aezh4b5b/Fixed_BetterSkybox_2.0.2.zip

All I had to do to resolve this problem, was add this trick

function makeObjectUnsaveable(obj)	local objPtr = getObjectPointer(obj)	objPtr = objPtr + 0x13C	memory.write(objPtr, 6, 1)end

This makes objects persistent but unsaveable.

 

EDIT: Fixed the code and the archive. sh*t, I'm familiar with C# (and C++ to a certain degree) but not familiar with Lua much, and I didn't think '+=' is unavailable in Lua.

Anyway, the trick works at least in singleplayer, of course.

Edited by kagikn
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.