Jump to content

vovo4ka

Members
  • Posts

    122
  • Joined

  • Last visited

Everything posted by vovo4ka

  1. Your table is very simple. One column should be the key. Two other easier to keep as 2 columns. Else you can try to store data in dbase table using lua user-data directly. But I am sure that this will not work due different data types (but you can try to use BLOB type). The best solution for this, in my opinion, to use serialization(convert table to string, store, and then parse)
  2. Oh sorry. This functions an't used in my project. They only implemented(in pre-release version and i forgot about this). I'm using events for every client-server tasks. You can delete it from source without any stability oproblems Thx for report
  3. I'm using both methods. With complex handling. I'm saving ped camera rotation too. All ped functions are totaly bugged. This is sad. These functions works very strange
  4. Thanks all!!! Ped movement looks good. Which algorithm is used to store and play peds movement data? Have you tried to shoot from weaps? or make an animated ped landing in cars? It's a huge problem.
  5. New version 1.4.0 avalaible! features: GUI Main menu (by F2). Improved vehicle/peds movement quality (now avalaible few quality modes for memory save). Implemented peds driveby (not correct aiming, but works . Vehicle speed limiter assist. Multiple players record. Save/Load rec data (also in map-resources. needs ACL rights). Camera menu fix (now buttons [c] (set as current) and as target/position works correctly) Re-bindable controls. Beep sounds on begin/stop rec/play.
  6. SetPedLook at doesn't work with server-side peds
  7. I have a problem. How to send to server ID of client side created ped? or How to warp client side ped into vehicle? or How to give weapon to client side peds? server side code getElementsByType("ped") returns nil If i send ped id directly to server - error bad @ pointer
  8. Thanks! I have already made save/load function. It will be released in next version (this weekend). Playback code very simple. Maybe I shall make some "API" for these files
  9. I want implement 2 modes: constant "keyframerate" (with skip or without him) and adaptive keyframerate(if object moves slowly or stand still - automatically decrease rate of keyframes) Also I want not to apply interpolation for peds that are very far from the camera. I need beta testers If someone interested - write me [email protected] (or icq 396101401)
  10. Omg! You're a genius! But.. If you set high fps limit you can get lags. I'll try this method tomorrow.
  11. New version available In 1.3.0: Coord interpolation. Now lag much less Exsperimental solution to the problem with ped rotation while ped shooting. Not ideal, but angle correct in most cases
  12. I just added to the Moderator group. Like this: <group name="Moderator"> <acl name="Moderator"/> <object name="resource.mapcycler"/> <object name="resource.mapmanager"/> [b] <object name="resource.stage"/>[/b] <object name="resource.resourcemanager"/> <object name="resource.votemanager"/> </group>
  13. Thx all!!!!!! Now i'm working on GUI and new method of movement data capture. Make timeline is easy with this method. Good idea. In future versions will be implemented. I think about the possibility of pointing trajectory of the camera. But I don't know how to draw 3d lines for debug in Map Editor And maybe add some SFX like explosions, etc. Yes it's easy It is very easy to do, but I think this is the post-effects and this must be done in a video editor I'm working on it. I think I already have a solution
  14. New update. Now vehicles can move over all map Thanks Gamesnert for idea save positions and speed of object. Previously I tried it but forgot about speed and movement were very lagged . Now they are lagged too) but not so strong(depends on cpu speed. sometimes while fraps recording in high resolution vehicles shakes. my laptop CPU very weak ) Peds can walk over "physic distance" too. Also new tutorial available here
  15. Thanks for feedback! Yes there is a Great Problem - repeat player movement precisely. Using SetControlState suitable for on-foot peds but vehicle controls very bad. I'm working on it! http://bugs.mtasa.com/view.php?id=4325 Try this code expample with getElementsByType("ped") and create 1 server-side ped and 1 client-side ------ Also you can try to use console command "dd" with parameters -10 -5 0 5 10 5 (try each of them) Maybe it will help in some cases ----- In Actor mode u can use freecam mode (F5 key) for fast movement and select ped position
  16. Full help shown by F2 key. I cant make ped crouch. Ped fast crouch and stands up Make ped lookin around impossible too. Becouse SetPedLookAt works on on client-side created peds. But warpPedIntoVehicle works only with server-side ped. I can't transmit to server id of local ped. getElementsByType with "ped" argument return empty table on server. Any suggestions?
  17. Tutorial are not completed jet In new version fixed some stability issues and implemented new features. Please wait release
  18. vovo4ka

    Resource Restart Bug

    Latest version - 1.0.3. On my 1st video you can see that in server console window. If resource started manually in server console - memory doesn't leaks. But then it started by resourceStart in my script... I found this regularity.
  19. Then I call startResource(someresource) in "my resource" and then I'm calling restartResource(someresource) repeatedly - memory leaks and server crashes. If I stop "my resource" but didn't stop "someresource" then after restartResource(someresource) memory doesn't leaks. I record a video:
  20. Thanx! controlstate for making him crouch - doesn't work enter/exit vehicle animations - I will try this in next version
  21. I wondered about creating a movie, but the freecam resource by itself wouldn’t suffice. I made this resource to help moviemakers to make more cinematic camera effects and help with actors. There are several camera modes: Aligment settings: You can attach a camera to any element (car or ped) or world position Four movement modes for camera position and target: 1) Rotation around point 2) Movement to point 3) Free mode (like freecam) 4) Static mode All modes interpolated and fully configurable. Some screenshots: Main menu: Camera menu: It looks crazy but I think easy to understand Target settings identical Peds as actors The experimental part of this resource is Player Motion Capture After beginning recording your motions captured and stopping the recording- the ped can repeat(try to repeat ) your movement and actions. Ped synchronization is very bad in this version of MTA but it will suitable for simple movement. How to use This resource isn’t suitable to do one big sequence at once, think of it as trying to do a big one take video. First of all you must write a script of movie ok 1. In Map editor resource place all vehicles and objects what do you want to use in your sequence. 2. In Stage resource load the map by using "map" console command It helps to easily reset vehicle positions and health. Map will be automatically restart with each Play/Rec command 3. In Actor mode (switch director/actor mode by pressing the F6 key) Stand at the point you want to begin your sequence at(player skin, animations, and weapons will also be saved, press F1 for the freeroam menu to access such features). You can make animation hotkeys. Select animation in freeroam menu. Press = key and 2-0 key for record current animation 4. Then press the O key. Recording will begin. Do some action and then press O key again. Recording will stop. 5. Press I to reset peds positions/restart map resource 6. Now you can play the peds actions by pressing P. 7. You can delete a ped by pressing the K key and select them with cursor 8. Record other peds motions. 9. Switch to Director mode by pressing F6. 10. Now you can configure your camera with the F7 menu or play saved cameras by 2-0 keys(tutorial video will be soon) 11. Play the sequence with P key. Any screen capture software will be useful GUI menu available by pressing F2 Known Issues: Restart resource bug https://forum.multitheftauto.com/viewtopic.php?f=105&t=27018 Camera Some camera mode combinations aren't correct Peds Incorrect Ped rotation while on aiming/fire Peds teleport in vehicles Peds cannot skydiving or driveby Bad weapon fire controls. RPG doesnt shoot Next versions Correct ped rotation while weapon fire Import/Export to xml Ped look_at position recording Peds driveby Parachute Code optimization Now (since 1.4) controls are re-bindable Key and commands overview Actor mode O - Start/Stop Record Player Motion I - Reset Scene\nP - Playback Record F2 - Stage Main Menu F3 - show/hide Timer F4 - show/hide HUD F5 Free cam F1 - freeroam menu for weapons animations etc. - - Reset Current Player Animation 2-9 - Play Animation Hotkey shift + 2-9 - in bind animation hotkey mode - set animation as single action (without shift - loop mode) = - Record Animation hotkey(2-0) Animation select in FreeRoam K - kill ped Console commands sens /sensX/sensY - mouse sensivity map <mapname> - set <mapname> resource as current map minute <numeric value> - set minute duration Director Menu - F6 F7 - Camera menu I - Reset Scene P - Playback Record 2-0 - Play camera preset Camera Free mode key control: W/S - move to Target A/D - Rotation around Target Arrow Keys - move camera Mouse Look - rotate Target(if not fixed) around Position Mouse Look + LMB - rotate Position(if not fixed) around Target Space - Pitch camera (relative Target) 2-9 - Apply Camera Preset (saved on F7 menu) - - Reset Camera = - Freeze camera Version history: 1.0.1 - restartResource problem fixed (now you must start the map manualy in the server console) - Warp player into vehicle after map resource restart - Now you can select animation hotkey mode - loop/single (by SHIFT key) - Camera issue with linking to object (after map restart camera freezes) - fixed 1.2.0 - Vehicle movement quality highly improved - Vehicle lights override (by L key) - Peds can crouch 1.3.0 - Vehicle and Peds movement interpolation - Experimental fix bug with ped rotation while ped on weapon fire. Right rotation in almost all cases. If you have any ideas how to fix it - we can discuss this 1.4.0 - GUI Main menu (by F2) - Improved vehicle/peds movement quality (now avalaible few quality modes for memory save) - Implemented peds driveby (not correct aiming, but works - Vehicle speed limiter assist - Multiple players record - Save/Load rec data (also in map-resources. needs ACL rights) - Camera menu fix (now buttons [c] (set as current) and as target/position works correctly) - Re-bindable controls - Beep sounds on start/stop rec/play 1.5.0 - Fixed problem with the huge scenes: no more *NETWORK TROUBLE* when attempting to record and save a lot of actors. - Also saving huge scenes is also supported now (but it takes a lot of time - few minutes So keep count of KeyFrames lower than 15000 (instead of 2000 for earlier versions) - Emerlights resource support. (desc https://forum.multitheftauto.com/viewtop ... 08&t=44652) Download link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=646 mirror: Download stage.zip Note: Defalut Director Password: director To change password open server.lua file and edit line local pass = "director" Any feedback would help ACL configuration This resource uses the restartResource function, to use it the resource requires elevated privileges. To do this, open up the acl.xml file in your server\mods\deathmatch directory and add the highlighted line: <group name="Moderator"> <acl name="Moderator" /> <object name="resource.mapcycler" /> <object name="resource.mapmanager" /> <object name="resource.resourcemanager" /> <object name="resource.votemanager" /> [b][color=#BF0000]<object name="resource.stage" />[/color][/b] </group> If you want to load/save peds movement data in other map resources - add this line: <group name="MapEditor"> <acl name="Default" /> <acl name="MapEditor" /> <object name="resource.editor_main" /> <object name="resource.edf" /> [b][color=#BF0000]<object name="resource.stage" />[/color][/b] </group> Installation video tutorial Check my youtube channel for more videos: http://www.youtube.com/user/vovo4kaX Tutorial 1. Work with peds: Tutorial 2. Work with camera Camera demo: (it's just a freecam mode in Stage)Nice video by MykolasGX: by simsoonas 1. http://www.youtube.com/watch?v=f97ew_36eRc 2. http://www.youtube.com/watch?v=ABDOL3-uTXw 3. http://www.youtube.com/watch?v=DoFk5GlDwWs 4. http://www.youtube.com/watch?v=mMnOf7wv7MM 5. http://www.youtube.com/watch?v=QTCsMeRty9M by jjsullivan http://www.youtube.com/watch?v=apVgrcxAHug Thanks jjsullivan for help with translating this post
  22. Wow! Can I record movie on this map?
×
×
  • Create New...