983
37
-
July 18, 2023
This tool will allow you to convert your created menyoo map over to an Object Placement Map
What is an Object Placement Map?
An Object Placement Map is bascially a set of data that allows a menyoo map to be loaded via script
The Tool comes with an exe for converting maps, as well as a example script file, that is used to load the map, after conversion
this video explains how to use the Tool + Script
https://youtu.be/SnUEEVZj4QM
As of 1.0 not all data from menyoo maps are being saved, this the data that is being read and converted:
for Props/Peds/Vehicles: Position, Rotation, Any Attachment Data (so Attachements save)
for Peds: Health, Armour, and current Weapon, scenario or animation Playing
for Vehicles: Primary Color, Seconary Color, Pearlescent Color and Livery
Basic Example by JohnFromGWN (copied from my YT Video)
https://forums.gta5-mods.com/topic/41981/menyoo-map-to-script-working-example
First Uploaded: July 05, 2023
Last Updated: July 05, 2023
Last Downloaded: 6 hours ago
42 Comments
More mods by HKH191:
- Mission
- Gameplay
- .Net
- Weapons
- .Net
- Gameplay
- Vehicles
- Gameplay
- Vehicles
- Player
This tool will allow you to convert your created menyoo map over to an Object Placement Map
What is an Object Placement Map?
An Object Placement Map is bascially a set of data that allows a menyoo map to be loaded via script
The Tool comes with an exe for converting maps, as well as a example script file, that is used to load the map, after conversion
this video explains how to use the Tool + Script
https://youtu.be/SnUEEVZj4QM
As of 1.0 not all data from menyoo maps are being saved, this the data that is being read and converted:
for Props/Peds/Vehicles: Position, Rotation, Any Attachment Data (so Attachements save)
for Peds: Health, Armour, and current Weapon, scenario or animation Playing
for Vehicles: Primary Color, Seconary Color, Pearlescent Color and Livery
Basic Example by JohnFromGWN (copied from my YT Video)
https://forums.gta5-mods.com/topic/41981/menyoo-map-to-script-working-example
First Uploaded: July 05, 2023
Last Updated: July 05, 2023
Last Downloaded: 6 hours ago
-
-
@HKH191 Yes, I'm fully aware of that. I posted a template with a full working example here:
https://forums.gta5-mods.com/topic/41981/menyoo-map-to-script-working-exampleJuly 05, 2023 -
@MrVicho13 It's not. A ymap is vastly superior to an xml map but that's not the purpose of this mod. This mod converts the xml of Menyoo maps, the resulting code is then incorporated into a template and compiled so it can be loaded with a c# script as a mod.
I think the target users will be those who have invested time in xml maps and would like to incorporate them in scripts. This could benefit them because it will be it faster than writing code from scratch to spawn all the entities that were already in the menyoo map. Tbh, I'm not sure how useful this mod is and it definitely is not for everyone.
July 05, 2023 -
@JohnFromGWN @MrVicho13 actually it is better in some cases to use this instead of a YMAP, its built for scripters, to make maps and then load them via their own script, so that their script doesnt need to require a mods folder to install a YMAP
July 05, 2023 -
@JohnFromGWN mind contacting me on discord, and sending me your menyoo file you tried to convert i can look into why it didnt work
July 05, 2023 -
@kagikn Sorry Miss typed in old message before, I would suggest NOT stopping support for SHVDN2 scripts as quite a lot of old scripts use it, for this tool, the example script can run on SHVDN2 or SHVDN3 as well as the code designed in the YT video can be run on SHVDN2 and SHVDN3
July 05, 2023 -
@HKH191 You would not be able to test it because it spawns custom props. However I don't see why that would be an issue given I can spawn these with C# (or vb.net), in other words the game engine recognizes them. The peds are also a combination of NPCs and addons (do you support addons?) with animations. Once more, these are recognized by any script. Finally there are 100s of vanilla props.
July 05, 2023 -
@JohnFromGWN i mean yeah it should have no trouble spawning addons, from my knowledge
July 05, 2023 -
@HKH191 I understand but keep in mind that anything a Menyoo map can do can be done through scripting. Spawning and positioning any entity, ped, vehicle, or object is one line of code. Animating, colors, clothes, facial features...all can be done directly through scripting. When I first started modding, I made a few xml maps with Menyoo but was disappointed by inconsistent entity spawns - like ghosting. I realized I could do anything Menyoo did with scripts. Having said that, I also use Menyoo xml. For example at times I have saved 10 or more MLOs in one session. I save these in Menyoo, then I import the xml directly into MS Excel and using string formulas I generate teleport code for every single location. This saves hours of work and in a sense is similar to what you're doing. Converting xml to code. The same applies to peds. I can make 10 component changes to a ped, save it as an outfit, and then convert the Menyoo components to native functions.
July 06, 2023 -
@JohnFromGWN it can be done manually, but what if you have over 200 objects, it get tedious to do that, i simply made this tool public so other people can use it
July 06, 2023 -
@HKH191 Fully agree with you. That was my point, it can save time, particularly since in game allows testing and positioning precisely. My original point was that this doesn't compete with ymaps - it's a scripting tool and enabler.
I have a suggestion. It would be cleaner if you shortened the expression "ObjectPlacementMap_Example.ObjectPlacementMap(GTA.Native"
Perhaps to just ObjectPlaceMap or even shorter. Also GTA.Native is not necessary for those using SHVND3.
CheersJuly 06, 2023 -
@JohnFromGWN that part of the expression is primarily to show the user what the entity is that the object placement map is creating, the script will try and use the hash from that but if not it will use the hash inputted after that
for example
new ObjectPlacementMap(GTA.Native.Function.Call<int>(Hash.GET_HASH_KEY,"prop_container_01a"),230426,0xda76fe6e, new Vector3(2946.60132f, 2746.92627f, 42.4062309f), new Vector3(0f, -0f, 105.91346f), -1,-1, new Vector3(0f,0f,0f),new Vector3(0f,0f,0f)),script tries to get hash of prop_container_01a first then if it cant it uses 0xda76fe6e
July 06, 2023 -
@HKH191 Understood. Sorry if I wasn't clear. What I meant was to shorten the string name.
For example ObjectPlacementMap_Example.ObjectPlacementMap
Becomes OPM.ObjectPlacement Map
Just as an example because the resulting lines of code are very longJuly 06, 2023 -
-
-
@HKH191 ok thanks for ur response ill work around it best i can with whats available. I also want to say thank you for making this masterpiece it will help me bring my map mod to life without being able to figure out codewalker lol. Very eagerly anticipating future updates!
July 14, 2023 -
I still don't understand this. In Menyoo you can already load the created map itself
July 19, 2023 -
At the moment, all my mods are being converted or have been converted to Scripthookvdotnet3, to not flood the scripts page with my mods, im only uploading 3 mods per day, leaving gaps inbetween other users mods, (I have had permission from 5mods admin to do this) as a result its going to take around a month for all my mods to be update to SHVDN3 builds on 5mods, so if you would like to get your hands on a mod of mine that has not been posted to 5mods yet, you can join my discord to get all updates to mod updated to scripthookvdotnet3, as well as Project Overthrow and The ECU Job in SP
https://discord.gg/EPz9KxGReH