Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
  • Announcements

    • randomperson139

      Signatures   03/04/2016

      Hi everyone. It appears that the update to the new forum has affected the format of the majority of signatures (adding extra spaces, changing sizes etc.). Due to this, could everyone please check their own signature, ensuring that it complies with the site rules. See the http://www.emergency-planet.com/tos.html/ or http://www.emergency-planet.com/topic/16848-acceptable-signature-sizes/ for more information.  We'll give it a few weeks to give enough time to edit signatures, after that the unnecessarily large signatures will simply be removed. Thanks for your cooperation. Regards, EMP Staff.
Sign in to follow this  
William Stapleford

Where are the command scripts at?

Recommended Posts

listed in several of the prefabs are commands to get equipment


Command array.  


The problems is that if I wanted to add new usable equipment to this mix I have no clue how to get it to work,  I would assume that a get equipment command or use equipment command would then trigger a script but for some reason when I look for them i can not find anything that controls the object.


Has anyone been able to write new scripts or even modify an existing script is this game?


Hopefully someone can point me in the right direction.  I have made a few now objects and I can substitute them into the game but ONLY if I make them the same name as the original prefab.  I can not get a new object to work in inventory because the game has no idea what to do with it.


For example I have added a traffic cone to the inventory of a vehicle, but even if i tell the officer and add a command into the command array the get trafficcone.  Nothing happens and they have no idea how to place it or how to retrieve it.  I know it was done in the Em4 mods so I have tried to take the Em4 mod and reverse engineer it but so far now luck.




Delaware, USA

Share this post

Link to post
Share on other sites

Hey William,


I have had some time to learn about Commands. They are done in C++ (->.dll file). I have a simular case and will try to get it useable in game and publish aswell the source code, so that other modders could benefit aswell.

Share this post

Link to post
Share on other sites

What are you using to open the .dll folders and edit the information.  I remember a little bit a VB and C++ from the good old college days.  I have a hex editor on my computer but if it requires much else in the line of programs I'm out of luck.  Thanks 




Delaware, USA

Share this post

Link to post
Share on other sites

No, you cant open the .dll's and a hex editor isnt the way to go .


You have to use the modding SDK  (with a small amount of coding examples)


Togehter with the Documentation


And a coding Envirement (Visual Studio 2015 Community Edition in my case) [Picture 1]

However to et envirement running is still a mystery for me (had one semester a c/c++ course). At least i was able to open the "sample plugin Project files". What I can Remember:

A) Place the SDK Folder in your Emergency 2016 Folder [Picture3 ]

B) Opeb the Project

C)"Right Click" your current plugin and select properties->VC++ Verzeichnisse [engl. directories/register]

Select as Libaries the folders with the .lib files

Select as Includedirectory and pluginapi/em5 [Picture 2]

Where to get started (source code)?

+Orginal Snippets within the SDK




MinimodCode.rar (its a bit outdatet)

What should you start with?

Commands, they are still the easiest way to start. My first Command was the Redirect Traffic Command

What is the difficulty?

I dont know how much C++ exercise you have. But most of code (pluginapi) is just provided as header (.h) files. These are indeed needed to write the .cpp files but it can be very tricky.

What other Tools should I use

- Notepad++: Usefull to search through files (like orginal snippets, pluginapi and coding examples)

- bookmark the Dokumentation in the browser and use the search function of it


I hope this helps. As i had no guideance and it took me ages to get even the plugin_sample compiled









Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this