raBBish Posted December 25, 2008 Share Posted December 25, 2008 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 Link to comment https://gtaforums.com/topic/387368-disabling-shadows/ Share on other sites More sharing options...
PharmacisT- Posted December 25, 2008 Share Posted December 25, 2008 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 Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807346 Share on other sites More sharing options...
noVa Posted December 25, 2008 Share Posted December 25, 2008 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. Alpha2242000 1 Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807351 Share on other sites More sharing options...
PharmacisT- Posted December 25, 2008 Share Posted December 25, 2008 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 More sharing options...
noVa Posted December 25, 2008 Share Posted December 25, 2008 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 More sharing options...
Geralt Posted December 25, 2008 Share Posted December 25, 2008 Before and After screenshots, please. Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807380 Share on other sites More sharing options...
raBBish Posted December 25, 2008 Author Share Posted December 25, 2008 Before: After: Quite a difference, disabling the shadows makes everything darker... Both pics taken in the same place at the same time of day Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807536 Share on other sites More sharing options...
CharmingCharlie Posted December 25, 2008 Share Posted December 25, 2008 No offence but I will stick with the shadows 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 More sharing options...
qwertz123 Posted December 25, 2008 Share Posted December 25, 2008 Quite a difference, disabling the shadows makes everything darker... just turn off your monitor and enjoy. Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807566 Share on other sites More sharing options...
norbi1988 Posted December 25, 2008 Share Posted December 25, 2008 Looks like you'r disabling sun Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807883 Share on other sites More sharing options...
lasallup Posted December 25, 2008 Share Posted December 25, 2008 that crap alice mod broke my gta Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807899 Share on other sites More sharing options...
Marcin6 Posted December 25, 2008 Share Posted December 25, 2008 Looks like you'r disabling sun HEHEHE tak samo by³o w grze Stalker , wy³±czy³e¶ cienie i nie by³o s³oñca xD The same was in Stalker when you disbaled shadows , no sun xD PS . MOre fps or something ? Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807909 Share on other sites More sharing options...
Biohazard_X Posted December 25, 2008 Share Posted December 25, 2008 Alice is here: http://alexander.sannybuilder.com/Files/IVAlice_0.1.rar Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058807917 Share on other sites More sharing options...
Gnasher316 Posted December 25, 2008 Share Posted December 25, 2008 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) 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 More sharing options...
ravenmorpheus Posted December 25, 2008 Share Posted December 25, 2008 So no fps increase or decrease. Nice try but it's not really helpful to most people, the game looks far better with the shadows, even if they are borked. Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808233 Share on other sites More sharing options...
adhome Posted December 25, 2008 Share Posted December 25, 2008 What do you expect? Shadows are only faces without light. Of caouse you can only disable shaows by changing direkt light to difuse light. Everybody knows that. Ask your grandpar. Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808253 Share on other sites More sharing options...
Ahm3dS Posted December 25, 2008 Share Posted December 25, 2008 how i add this code ? and how to run that alice mod ? Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808327 Share on other sites More sharing options...
Cdnalsi Posted December 25, 2008 Share Posted December 25, 2008 So there's no performance boost without the shadows??? Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808413 Share on other sites More sharing options...
JBFord4x4 Posted December 25, 2008 Share Posted December 25, 2008 Wouldn't losing shadows make the game look like even more ass? Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808467 Share on other sites More sharing options...
postem Posted December 25, 2008 Share Posted December 25, 2008 I always hated the shadows on this game, but having no shadows at all, plus no extra fps, i stick with the shadows. Now that i got imersed on the game, shadows arent more an nuisiance. Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808477 Share on other sites More sharing options...
How-To-Improve-GTA-IV Posted December 25, 2008 Share Posted December 25, 2008 (edited) 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 December 25, 2008 by How-To-Improve-GTA-IV Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808716 Share on other sites More sharing options...
CharmingCharlie Posted December 25, 2008 Share Posted December 25, 2008 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 More sharing options...
How-To-Improve-GTA-IV Posted December 25, 2008 Share Posted December 25, 2008 (edited) 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 December 25, 2008 by How-To-Improve-GTA-IV Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058808793 Share on other sites More sharing options...
Gnasher316 Posted December 25, 2008 Share Posted December 25, 2008 (edited) 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 December 25, 2008 by Gnasher316 Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058809428 Share on other sites More sharing options...
Gnasher316 Posted December 28, 2008 Share Posted December 28, 2008 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 Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058817538 Share on other sites More sharing options...
RuWarlord Posted December 28, 2008 Share Posted December 28, 2008 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 You are welcome dip sh*t, life goes on. Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058817674 Share on other sites More sharing options...
CraZyLiLbOy69 Posted December 28, 2008 Share Posted December 28, 2008 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 Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058817679 Share on other sites More sharing options...
Mouta Posted December 28, 2008 Share Posted December 28, 2008 i would only use this if it increases the fps or else i'll keep the shadows on... they are not that bad... Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058817969 Share on other sites More sharing options...
The Horror Is Alive Posted December 28, 2008 Share Posted December 28, 2008 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 More sharing options...
MaxVK Posted December 28, 2008 Share Posted December 28, 2008 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! 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! ) Max Link to comment https://gtaforums.com/topic/387368-disabling-shadows/#findComment-1058819371 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