solidsnake Posted January 27, 2010 Share Posted January 27, 2010 Hi .. i just wanna ask if it possible to run an old resources that doesnt work with MTA 1.0.X Cuz when i run it it shows me black ... like no spawn or doesnt send an order to client to spawn ... if not possible so i think can be fix by modify it to compatible with new MTA 1.0.X ? corrct me i fi mistake. My Regards ... Link to comment
0 solidsnake Posted January 27, 2010 Author Share Posted January 27, 2010 Hi .. i just wanna ask if it possible to run an old resources that doesnt work with MTA 1.0.X Cuz when i run it it shows me black ... like no spawn or doesnt send an order to client to spawn ... if not possible so i think can be fix by modify it to compatible with new MTA 1.0.X ? corrct me i fi mistake. My Regards ... Link to comment
0 dzek (varez) Posted January 27, 2010 Share Posted January 27, 2010 if you know scripting, you'll probably fix it. but i think nobody will do it for you Link to comment
0 dzek (varez) Posted January 27, 2010 Share Posted January 27, 2010 if you know scripting, you'll probably fix it. but i think nobody will do it for you Link to comment
0 Dark Dragon Posted January 27, 2010 Share Posted January 27, 2010 login as an admin and type /debugscript 3 the nrestart the resource and see what errors appear there. Link to comment
0 Dark Dragon Posted January 27, 2010 Share Posted January 27, 2010 login as an admin and type /debugscript 3 the nrestart the resource and see what errors appear there. Link to comment
0 solidsnake Posted January 27, 2010 Author Share Posted January 27, 2010 (edited) if you know scripting, you'll probably fix it. but i think nobody will do it for you thanks for reply ... look what i want to say is is there a manual or tips to convert an old gamemode to compatible with new (more explain : the things that changed from an old resource script to new - maps not need to changed... just only .lua as i think (gamemode no map resource) / OR WHAT THE COMMAND OR THINGS CHANGED >>SPAWN ... FLOAT ...etc i dont know how to explain pretty well but i hope you understand what i mean . Edited January 27, 2010 by Guest Link to comment
0 solidsnake Posted January 27, 2010 Author Share Posted January 27, 2010 (edited) if you know scripting, you'll probably fix it. but i think nobody will do it for you thanks for reply ... look what i want to say is is there a manual or tips to convert an old gamemode to compatible with new (more explain : the things that changed from an old resource script to new - maps not need to changed... just only .lua as i think (gamemode no map resource) / OR WHAT THE COMMAND OR THINGS CHANGED >>SPAWN ... FLOAT ...etc i dont know how to explain pretty well but i hope you understand what i mean . Edited January 27, 2010 by Guest Link to comment
0 Gamesnert Posted January 27, 2010 Share Posted January 27, 2010 The changelist of DP2.3 -> 1.0 is quite a big one, it's kind of hard to give you all of the info you need. Your best chance would be to extensively debug the script, see at what part it stops and why. If you do know where the problem is, but don't know how to fix it, you can ask it right here on the forums. (or this topic, even) Link to comment
0 Gamesnert Posted January 27, 2010 Share Posted January 27, 2010 The changelist of DP2.3 -> 1.0 is quite a big one, it's kind of hard to give you all of the info you need. Your best chance would be to extensively debug the script, see at what part it stops and why. If you do know where the problem is, but don't know how to fix it, you can ask it right here on the forums. (or this topic, even) Link to comment
0 solidsnake Posted January 27, 2010 Author Share Posted January 27, 2010 login as an admin and type /debugscript 3 the nrestart the resource and see what errors appear there. Ok i did it ...Man i see unlimited lines repeateing itself (one line -loop) Error .... /gamemode/objects/client/object.lua 27 : attempt to index field : _progress bars (a nil value) i cant see any farther more .... just repeating too fast so at least i know where the problem - as i thnk- that is from object ok it tell me to change thngs like : isPlayerInWater > isElementInWater .... etc . i have problem with this (setCameraMode/getCameraMode/setCameraPosition/setCameraLookAt) what should i replace with it ??? btw in Server Log says : "upgrade" the resource how to upgrade ? & f i upgrade 100% works ? plz help with explain ... Link to comment
0 dzek (varez) Posted January 27, 2010 Share Posted January 27, 2010 how to upgrade just type "upgrade" this sometimes works, sometimes not.. for me - for 2 scripts worked ok, for 1 totally failed.. Link to comment
0 solidsnake Posted January 28, 2010 Author Share Posted January 28, 2010 ok thanks for reply guys i just have problem with this 1- (setCameraMode/getCameraMode/setCameraPosition/setCameraLookAt) what should i replace with it ??? this is the only problem appear in console (server) BUT when i do /debugscript 3 shows me this >>> 2-Error .... /gamemode/objects/client/object.lua 27 : attempt to index field : _progress bars (a nil value) > in game & this appear in console after /debugscript 3 also 3-Error .... /deathmatch/resources/extreme/gamemode/extreme.lua 252 : attempt to index field ' ? ' (a nil value) plz help problem 1 is important !!!! problem 2 not fixed yet ... problem 3 maybe fixed Link to comment
0 Gamesnert Posted January 28, 2010 Share Posted January 28, 2010 setCameraMode + setCameraPosition + setCameraLookAt -> setCameraMatrix + setCameraTarget (for setting the camera to player mode again) For the other 2 errors we need to see the script itself to help you with it. Link to comment
0 solidsnake Posted January 28, 2010 Author Share Posted January 28, 2010 setCameraMode + setCameraPosition + setCameraLookAt -> setCameraMatrix + setCameraTarget (for setting the camera to player mode again)For the other 2 errors we need to see the script itself to help you with it. can you explain more setCameraMode replace it with -> setCameraTarget ? getCameraMode replace it with -> ??? (idk) setCameraPosition replace it with -> SetCameraMatrix ? * setCameraLookAt replace it with -> SetCameraMatrix ? * like this with which one SetCameraMatrix / setCameraTarget ?? * those mixed in same line isnt it ? In Wiki(This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did.) im really confused if i am wrong correct me & plz explain how to correct this Link to comment
0 Gamesnert Posted January 28, 2010 Share Posted January 28, 2010 -- Before: setCameraMode(player,"fixed") setCameraPosition(player,0,0,0) setCameraLookAt(player,5,0,0) -- Now: setCameraMatrix(player,0,0,0,5,0,0) -- Before: setCameraMode(player,"player") -- Now: setCameraTarget(player,player) I hope it's a bit clearer now. Otherwise, just check the wiki pages and try to figure out how it works, it's really simple. Link to comment
Question
solidsnake
Hi ..
i just wanna ask if it possible to run an old resources that doesnt work with MTA 1.0.X
Cuz when i run it it shows me black ... like no spawn or doesnt send an order to client to spawn ...
if not possible so i think can be fix by modify it to compatible with new MTA 1.0.X ? corrct me i fi mistake.
My Regards ...
Link to comment
15 answers to this question
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