Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. Omg, i made that mirror especially for him, even if he was acting like that, and he can't even say "thank you" but something weird about me because he can't download from filebase?
  2. Install it into right folder and restart server after. https://wiki.multitheftauto.com/ there is server manual
  3. Thanks- I'll check it when i will finish most important things
  4. I can create own waypoints, there is no problem with this. Also custom waypoints system is a good feature for custom maps. I don't know any good algorithm of route selecting from waypoints and connections between them, but i think i will find it out sooner our later While creating this resource i discovered one bug with coronas, I'll report it tomorrow.
  5. dzek (varez)

    Driving bot

    Aside of my new gamemode I'm working on driving bots, cause long time ago somebody said that he's working on peds resource, imitating peds from single player, but still nothing.. This is first working script so bots are behaving a little crazy (turning left and right), also no waypoints are set (just one short path - at the end of movie the path is over so bot is jumping from the cliff). I'm gonna improve AI, add some checks if something is on bot way - so it can avoid obstacle (or at least try) and .. synchronize it It won't be perfect when i finish it anyway, but be as good as i can do - and will be useful anyway (no more empty cities while playing - it will be cool even with race gamemode (if you dont want bots to move on your way - you can always but them in background - as visual thing)). okay, enough said, watch video, and remember - its only an early alpha and as a bonus, fail video: sorry for no sound in 2nd movie, some-weird-music in 1st one, bad quality in both ^^
  6. https://community.multitheftauto.com/ u sure you wanted to post in in MTA: Vice City?
  7. Well, if somebody just wrote a virus - AV wont catch it
  8. i asked where you have extracted these files? i think you dont have slightest idea about administrating linux servers...
  9. im interesed in what "very cool features" means to you
  10. You probably extracted it wrong then. Where did you extract these files?
  11. Download this resources package and install it in your server (check Server manual for more informations)
  12. Don't dump your topic, especially when only 39 minutes passed. Don't overuse "!" mark. And stop acting like kid! http://filebase.to/files/1955830/mabako ... d4a852.zip
  13. Are you using server on your local machine or on some kind of gameserver hosting? If its local server you probably havent checked to install all gamemodes while installing mta, just reinstall it, and watch out on every step
  14. What? 420KB exe from random site? I wouldn't trust this.. omfg. Im installing this in safe enviroment, so it cant hurt me, it needs .NET 4 (it's installing so long, also i never trusted .NET becouse newer versions often causes troubles with PC - like infinite shutdown, BSODs, hibernation problems, etc) - i havent seen any application requiring .NET 4 yet. I havent known it existed! Still not installed and not tested. Okay, after installing it fails to run. Don't download. Piece of .... New browsers have a lot ways to open page without typing it's address (like: Speed Dial, keyboard shortcuts, bars with icons to click, etc).
  15. omg, he changed nothing, even meta.xml .. can't understand it https://community.multitheftauto.com/?p=resources ... ls&id=1021
  16. i only need all these on flat surfaces Something like triangle. Look: I want to get the angle near "B". Left one should be like 150 degrees, and right one like 220 degrees. I have two functions, both of them are returning floats between 0-180, i need it in 0-360 scale. This is what i have so far. I'm thinking about comparing A, B and C points positions to decide if this is angle > 180 or not (it's like path - turning to left or right) function getAngleBetweenPoints2D(ax,ay,bx,by,cx,cy) local AB = { ax-bx, ay-by } local BC = { cx-bx, cy-by } local AB_ = getDistanceBetweenPoints2D(ax,ay,bx,by) local BC_ = getDistanceBetweenPoints2D(bx,by,cx,cy) local iloczynSkalarny = AB[1]*BC[1] + AB[2]*BC[2] local tmp = iloczynSkalarny/(AB_*BC_) local kat = math.acos(tmp) local degrees = kat*180/(22/7) outputChatBox("deg "..degrees) return degrees end function getAngleBetweenPoints2D2(ax,ay,bx,by,cx,cy) local AB_ = getDistanceBetweenPoints2D(ax,ay,bx,by) local BC_ = getDistanceBetweenPoints2D(bx,by,cx,cy) local CA_ = getDistanceBetweenPoints2D(cx,cy,ax,ay) local cos = (AB_^2+BC_^2-CA_^2)/(2*AB_*BC_) local kat = math.acos(cos) local degrees = kat*180/(22/7) outputChatBox("deg "..degrees) return degrees end EDIT: Problem resolved with this: function fy(x, ax, ay, cx, cy) return (((cy-ay)/(cx-ax))*(x-ax)+ay) end function getTurnLeftOrRight2D(ax,ay,bx,by,cx,cy) if (ax==cx and ay==cy) then -- 1 --guiSetText(w, "war 1") return 1 elseif (ax==cx and ay>cy) then -- 2 --guiSetText(w, "war 2") if (bx>ax) then return 1 else return 0 end elseif (ax==cx and ay -- guiSetText(w, "war 3") if (bx>ax) then return 0 else return 1 end elseif (ax>cx and ay==cy) then -- 4 -- guiSetText(w, "war 4") if (by>ay) then return 0 else return 1 end elseif (ax -- guiSetText(w, "war 7") if (by>ay) then return 1 else return 0 end elseif (ax>cx and ay>cy) then -- 5 -- guiSetText(w, "war 5 - "..by..'==='..fy(bx, ax, ay, cx, cy)) --if (by>fy(bx, ax, ay, cx, cy)) then return 0 else return 1 end if (by>fy(bx, ax, ay, cx, cy)) then return 0 else return 1 end elseif (ax>cx and ay -- guiSetText(w, "war 6") if (by>fy(bx, ax, ay, cx, cy)) then return 0 else return 1 end elseif (axcy) then -- 8 -- guiSetText(w, "war 8") if (by>fy(bx, ax, ay, cx, cy)) then return 1 else return 0 end elseif (ax -- guiSetText(w, "war 9") if (by>fy(bx, ax, ay, cx, cy)) then return 1 else return 0 end end end thanks.
  17. a: no, becouse Australia rocks ass! q: kill all spiders?
  18. Patience is good thing. Text-description: prepare table for top 10, Loop through all accounts, if table size is smaller than 10 - just add values, if its size equals to 10 loop through whole table, if one of values is less than value from account - remove smallest value from table and add that one from current account in your loop. At the end-sort the table. Maybe lua have some sorting functions-if not, search google for sorting function and use it.
  19. One of type of variables, this one is containing text. There Was wiki page about types i think. maybe string have even its separate page? I don't know, search
  20. Of course they are points on the map, having their x, y, z coordinates. It's like path from A to C through B, and i want to know the angle of turn in point B. Im interested in x, y only, ignore third depth
  21. And From where you get that maps? Are they converted or something? You have to put maps in /server/mods/deathmatch/resources/ And you are probably putting them into /mods/deathmatch/resources/ (skipping server folder)
×
×
  • Create New...