Quantcast

Jump to content

» «
Photo

Better Skybox

SA WIP
95 replies to this topic
guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#61

Posted 15 November 2017 - 02:44 AM

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 ¯\_(ツ)_/¯.

powerofpencil
  • powerofpencil

    Square Civilian

  • Members
  • Joined: 20 Feb 2012

#62

Posted 25 November 2017 - 01:49 PM

 

 

Can you please help me? It doesn't show any clouds.

 

soog9z.png


Xenavi
  • Xenavi

    Player Hater

  • Members
  • Joined: 27 Dec 2016
  • Lithuania

#63

Posted 25 November 2017 - 10:27 PM Edited by Xenavi, 25 November 2017 - 10:28 PM.

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

i get only vanila clouds


guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#64

Posted 26 November 2017 - 06:19 AM

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.


Junior_Djjr
  • Junior_Djjr

    Modding Lover

  • Members
  • Joined: 16 Dec 2011
  • Brazil
  • Best Map 2016 [San Andreas INSANITY] [Contribution]

#65

Posted 26 November 2017 - 06:49 AM Edited by Junior_Djjr, 26 November 2017 - 06:49 AM.

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.

  • guru_guru likes this

boludoz
  • boludoz

    Rat

  • Members
  • Joined: 10 Dec 2009
  • Argentina

#66

Posted 27 November 2017 - 07:21 PM

Que impresionante compa, que bien programado.

  • guru_guru likes this

guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#67

Posted 05 December 2017 - 11:05 PM Edited by guru_guru, 05 December 2017 - 11:07 PM.

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


Junior_Djjr
  • Junior_Djjr

    Modding Lover

  • Members
  • Joined: 16 Dec 2011
  • Brazil
  • Best Map 2016 [San Andreas INSANITY] [Contribution]

#68

Posted 06 December 2017 - 09:37 AM

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

  • SolidFrost and _Israel_ like this

guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#69

Posted 08 December 2017 - 02:15 AM Edited by guru_guru, 08 December 2017 - 02:17 AM.

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. 


Junior_Djjr
  • Junior_Djjr

    Modding Lover

  • Members
  • Joined: 16 Dec 2011
  • Brazil
  • Best Map 2016 [San Andreas INSANITY] [Contribution]

#70

Posted 08 December 2017 - 05:16 AM

 

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.


WeedSR
  • WeedSR

    Player Hater

  • Members
  • Joined: 09 Nov 2014
  • Albania

#71

Posted 08 December 2017 - 06:52 AM

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.

Elissay
  • Elissay

    Rat

  • Members
  • Joined: 26 Aug 2017
  • Romania

#72

Posted 08 December 2017 - 01:23 PM

I dont wana look stupid but how do i install the mod ?

LaDiDa
  • LaDiDa

    I'm only human

  • Members
  • Joined: 12 Jul 2016
  • Netherlands

#73

Posted 08 December 2017 - 03:29 PM

Drag and drop after installing all essential plugins listed :p
  • guru_guru likes this

Junior_Djjr
  • Junior_Djjr

    Modding Lover

  • Members
  • Joined: 16 Dec 2011
  • Brazil
  • Best Map 2016 [San Andreas INSANITY] [Contribution]

#74

Posted 08 December 2017 - 03:54 PM

 

 

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?


Elissay
  • Elissay

    Rat

  • Members
  • Joined: 26 Aug 2017
  • Romania

#75

Posted 08 December 2017 - 07:52 PM

Drag and drop after installing all essential plugins listed :p

I have all but is still not work

guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#76

Posted 08 December 2017 - 08:27 PM

Drag and drop after installing all essential plugins listed :p

I have all but is still not work

Send me your moonloader.log

jrnaufal2
  • jrnaufal2

    Player Hater

  • Members
  • Joined: 19 May 2017
  • Indonesia

#77

Posted 10 December 2017 - 11:31 AM

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

guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#78

Posted 10 December 2017 - 01:48 PM

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.

MBT
  • MBT

    Crackhead

  • Members
  • Joined: 16 Jul 2016
  • Romania

#79

Posted 14 December 2017 - 12:53 AM Edited by MBT, 14 December 2017 - 12:56 AM.

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.


guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#80

Posted 14 December 2017 - 02:34 AM

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.


MBT
  • MBT

    Crackhead

  • Members
  • Joined: 16 Jul 2016
  • Romania

#81

Posted 14 December 2017 - 01:25 PM

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.

zqh9843
  • zqh9843

    Player Hater

  • Members
  • Joined: 25 May 2012
  • China

#82

Posted 15 December 2017 - 04:43 PM

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).


LaDiDa
  • LaDiDa

    I'm only human

  • Members
  • Joined: 12 Jul 2016
  • Netherlands

#83

Posted 15 December 2017 - 05:06 PM

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.


zqh9843
  • zqh9843

    Player Hater

  • Members
  • Joined: 25 May 2012
  • China

#84

Posted 15 December 2017 - 05:17 PM Edited by zqh9843, 15 December 2017 - 05:46 PM.

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.


guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#85

Posted 15 December 2017 - 07:38 PM

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.

zqh9843
  • zqh9843

    Player Hater

  • Members
  • Joined: 25 May 2012
  • China

#86

Posted 16 December 2017 - 05:17 AM

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


De1mA
  • De1mA

    Player Hater

  • Members
  • Joined: 30 Jan 2016
  • Lithuania

#87

Posted 16 December 2017 - 09:33 PM

hello. 

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

Thank you in advance


guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#88

Posted 4 weeks ago

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.
  • LaDiDa likes this

LaDiDa
  • LaDiDa

    I'm only human

  • Members
  • Joined: 12 Jul 2016
  • Netherlands

#89

Posted 4 weeks ago

Damn, that timecyc is exactly what I was looking for ._.

Thanks!
  • guru_guru likes this

kagikn
  • kagikn

    Ghillie

  • Members
  • Joined: 05 Jun 2014
  • Japan

#90

Posted 4 weeks ago Edited by kagikn, 4 weeks ago.

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...kybox_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.

  • guru_guru likes this




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users