Jump to content

Disabling shadows


Recommended Posts

I don't have GTA4 myself yet, but this has been confirmed by a friend.

 

This small lua script requires the mod Alice and disables the shadows.

 

PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR = 0function InitScript()   Wait(10000)endfunction WaitForPlayerPoolCreation()   while (IsPlayerPoolCreated() == 0) do       Wait(2000)   endendfunction WaitForValidPlayer()   PLAYER_CHAR = 0   repeat       CallNative("GET_PLAYER_ID")       PLAYER_ID = GetIntResult()       if (PLAYER_ID >= 0) then           PushInt(PLAYER_ID)           CallNative("CONVERT_INT_TO_PLAYERINDEX")           PLAYER_INDEX = GetIntResult()           PushInt(PLAYER_INDEX)           PushVarPtr()              CallNative("GET_PLAYER_CHAR")           PLAYER_CHAR = GetIntParam(1)           if (PLAYER_CHAR <= 0) then               Wait(1000)           end       end   until (PLAYER_CHAR > 0) end function DisableShadows()   PushInt(0)   CallNative("ENABLE_SHADOWS")endfunction main()   while true do       DisableShadows()       Wait(300)   end end-- startmain();

 

 

I don't know if all those Wait's are required, but this works at least.

If you have any improvements, please post smile.gif

 

Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/
Share on other sites

I don't know what you people are about ...

 

The Shadows aren't that ugly Oo

 

They okay ..

 

Are they in 10x10 resolution @ your PC's or what

they are ugly when you get some messed up shadows flickering all over a building where they shouldn't be!

 

having dealt with basic lua in mta:sa that code looks messy very messy indeed.

  • Like 1
Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807351
Share on other sites

I don't know what you people are about ...

 

The Shadows aren't that ugly Oo

 

They okay ..

 

Are they in 10x10 resolution @ your PC's or what

they are ugly when you get some messed up shadows flickering all over a building where they shouldn't be!

 

having dealt with basic lua in mta:sa that code looks messy very messy indeed.

I have no Graphicfailures @ all ... sometime a texture is reloading it self for 1 sec but that dont happens often

Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807355
Share on other sites

I don't know what you people are about ...

 

The Shadows aren't that ugly Oo

 

They okay ..

 

Are they in 10x10 resolution @ your PC's or what

they are ugly when you get some messed up shadows flickering all over a building where they shouldn't be!

 

having dealt with basic lua in mta:sa that code looks messy very messy indeed.

I have no Graphicfailures @ all ... sometime a texture is reloading it self for 1 sec but that dont happens often

just seems rather bloated and for people who are already having problems performance wise a messy lua code could worsen things.

Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807357
Share on other sites

CharmingCharlie

No offence but I will stick with the shadows tounge.gif But it is useful info for those that might want to turn them off. Did you notice an increase in frame rates with the shadows turned off ? I know someone will ask so it might as well be me.

Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807562
Share on other sites

I just tried this,

It does indeed work but yes it does disable the sun, Its not too bad, gives it more of a GTA 3 feel to the city.

 

Some shadows do remain at certain times of the day mainly under cars but they look ok (see screenie)

 

user posted image

Screenie taken at around 8am/foggy weather, no "P" filter

 

I didn't notice any framerate changes by using this.

 

If you hate shadows and can live with a slightly darker game then I reccomend using this, Its all down to your own visual preference in the end.

Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808195
Share on other sites

How-To-Improve-GTA-IV

Re-open my post or post a solution WITHOUT the need of seperate modifications here, please.

http://www.gtaforums.com/index.php?act=ST&f=240&t=387481

 

Side note: Moderator, guess you didn't read my second question :-

 

Will it be possible with the next patch to disable shadows completely and to configure reflection and water quality?

 

eh.

Edited by How-To-Improve-GTA-IV
Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808716
Share on other sites

CharmingCharlie
Re-open my post or post a solution WITHOUT the need of seperate modifications here, please.

http://www.gtaforums.com/index.php?act=ST&f=240&t=387481

 

Side note: Moderator, guess you didn't read my second question :-

 

Will it be possible with the next patch to disable shadows completely and to configure reflection and water quality?

 

eh.

You asked for a way to disable shadows and I showed you this topic which is already discussing the disabling of shadows. We can't have a topic on every single damn aspect of disabling shadows. Obviously there is no current way of doing it without modding the game and since disabling shadows gives you NO fps improvement the likelihood of Rockstar implementing a disable shadows option is highly unlikely.

Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808726
Share on other sites

How-To-Improve-GTA-IV

Only because of one person who said it won't improve fps it doesn't mean he's right. Off course it will improve fps on lower cpu's. But that isn't the only reason to do so. The shadow is ugly! The solution posted here is no real nor good solution (no sun -> no shadow). It would be easy for RockStar to let the player decide. The other option is concerned about the reflection and water quality (a tweak thread has been pinned in this board about it). All RockStar would have to do is to put f* options into this game. Options are always good. Nothing new, but the whole performance has to be improved. You can't run the game with minimum specs at lowest settings with more fps than on console (20<25<30)

Edited by How-To-Improve-GTA-IV
Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808793
Share on other sites

 

how i add this code ?  and how to run that alice mod ?

I have put all the files needed in a single zip,

 

All you need to do is unzip them to your GTA IV folder overwriting any files (theres only one file that needs overwriting and I have included the orig in the zip)

get it Here

 

*edit*

When you have done this the shadows will be disabled. Just run the game

 

If you want shadows back on delete the "shadows.lua" file from the alice folder..

 

If I were you I would just leave them on anyway.

Edited by Gnasher316
Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058809428
Share on other sites

The Horror Is Alive
To the 206 people that have downloaded this, you are welcome assholes, a thanks would be nice, I'm deleting this file, Bunch of ungreatful assholes around here

I have to agree with him. I don't post much, but I have known a lot of people around here to be real c*nts.

Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058818004
Share on other sites

Maybe it would be better if you created a page somewhere with the download link, but the only way to get the link to that page is to get a PM of thanks first! wink.gif

 

Anyway, I see no reason why people shouldn't say thank you - At least you are trying to do something, even if it doesn't work for everyone. Politeness costs nothing.

 

I hope you carry on with your research and keep us informed if you find anything else that may be of some value; As far as I can see we need as much help as we can get with this game, and even if a tip, trick or script of some kind doesn't help, at least someone is trying.

 

As for removing the shadows: I'm not sure Id like to play it looking like that - I sure don't get high FPS, but the game is playable and looks quite nice - So thanks for trying, but Ill give it a miss (even if the file were still available! wink.gif )

 

Max

Link to comment
https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058819371
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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