XFawkes Posted December 16, 2009 Posted December 16, 2009 There is my problem ;/ I created a race [DM/DD] map with moving objects. Everything work in 'Map Editor Test Mode', but when i try to open map in 'Host Mode' there is that error: Download error: HTTP response code said error. I have 2 scripts SERVER and CLIENT, and that CLIENT script don't work, because when i remove it [client side script], everything is ok. That is my meta file <?xml version="1.0" encoding="utf-16" ?> <meta> <script src="1.lua" type="server"/> <script src="2.lua" type="client"/> <info gamemodes="race" type="map" name="xxx" author="xxx" version="1.0.3" /> <map src="xxx.map" dimension="0" /> <settings> <setting name="#skins" value='[ "cj" ]' /> <setting name="#maxplayers" value="[ 32 ]" /> <setting name="#gamespeed" value="[ 1 ]" /> <setting name="#ghostmode" value='[ "false" ]' /> <setting name="#time" value="18:0" /> <setting name="#vehicleweapons" value='[ "true" ]' /> <setting name="#minplayers" value="[ 0 ]" /> <setting name="#weather" value="[ 0 ]" /> <setting name="#gravity" value="[ 0.008000 ]" /> <setting name="#waveheight" value="[ 0 ]" /> <setting name="#respawntime" value="[ 0 ]" /> <setting name="#locked_time" value="[ false ]" /> <setting name="#duration" value="[ 1500 ]" /> <setting name="#respawn" value='[ "none" ]' /> </settings> </meta> and there is my "2.lua" file [clientside] function resource_says_hai_client () setWaterColor( 255 , 0 , 0 ) setWaveHeight ( 0.5 ) rampa = createObject ( 1655 , 3047.9677734375 , 4709.7055664063 , 3.8377332687378 ) setElementCollisionsEnabled ( rampa , false ) end addEventHandler( "onClientResourceStart", resourceRoot, resource_says_hai_client ) Help me please European Pro Gamers Member LUA Programmer
Gamesnert Posted December 16, 2009 Posted December 16, 2009 I'm entirely not-sure if it'll help, but eh... Try renaming the client file to something else? Something like test_client.lua? Projects: Slothbot | Maximap
XFawkes Posted December 16, 2009 Author Posted December 16, 2009 didn't help ;( European Pro Gamers Member LUA Programmer
50p Posted December 16, 2009 Posted December 16, 2009 Do you use external HTTP server to download resource? - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
XFawkes Posted December 16, 2009 Author Posted December 16, 2009 no i just START MTA HOST SERVER login as admin change mode to race change resource to my map and there is download error European Pro Gamers Member LUA Programmer
50p Posted December 16, 2009 Posted December 16, 2009 Try not to use "host server" from MTA client. Run "MTA Server.exe" instead. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
XFawkes Posted December 16, 2009 Author Posted December 16, 2009 same ;/ IT MUST BE THAT "client.lua" file because when i remove it everything is OK mb that script has errors? how looks typical client script? European Pro Gamers Member LUA Programmer
50p Posted December 17, 2009 Posted December 17, 2009 The script is fine. I've never seen such error message before. This errors has got something to do with downloading your client-side script file. Unfortunately, "response code said error" doesn't say much... Join our IRC channel and speak to someone who's up-to-date with the source code and ask them where does this message come up and what could be a reason. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
XFawkes Posted December 17, 2009 Author Posted December 17, 2009 i checking this map at my friend computer and same problem ;/ I check this script at the other map and everything is ok it is a .map file problem? ok i solved the problem ;] SPACE in mapname ... argh European Pro Gamers Member LUA Programmer
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