[FilterScript] Map Editing Script

Started by karan20000000000, Apr 21, 2015, 04:18 PM

Previous topic - Next topic

karan20000000000

Hello guys, I've been working on this script for a while because I was unable to use the map editing software(MEd,KED,etc).
So here's the download link:

How to install:-
Extract all the files from the .rar file into a folder. Add the plugins, server configuration files and the server.

How to use:-
Before starting to perform map editing through this script I recommend you to remove arrow keys from ped control or wasd keys whichever you don't use for controlling you ped.

Commands: /co <id>      //create an object with the specific id
                    /wasd          //set the object editing keys to wasd
                    /arrows        //set the object editing keys to arrow keys
                    /loadautosaved         //loads the objects from autosaved section in objects.ini

The arrow keys are used for editing by default. If you want to use wasd for editing then type /wasd.

Editing keys:
Disable/Enable editing = `           //Key above tab button
Enable x,y editing coords = f1
Then use arrow keys.
 
Enable z editing coord = f2
Then use up and down arrow key.
 
Enable angle editing = f3
Then use arrow keys, [ and ] .    //[ and ] are used for horizontal rotation. [ and ] are the keys right next to P button

Toggle relative positioning on/off = 1  //Not the numpad key. Key 1 above Q
 
Print statement for selected object = P
Replicating selected object = L
 
Delete selected object = delete key
Select object = shoot with any gun.

After you select an object and press print key(P) then a CreateObject statement will be printed on the console and to object.ini somewhat like this:
[SCRIPT]  CreateObject(562,1,Vector(-335.557, -517.293, 12.7957),255).RotateToEuler(Vector(0, 0, -1.55),1);

If you want to print details through an echobot to  print details to irc then you may also attach an echo.nut file but I haven't supplied the echobot file.

One more thing, you may need not tap an editing button again and again. You can just press and hold it.

Enjoy mapping your server with your friends.

UPDATE- v2
1)Added relative repositioning of objects. Now you can reposition objects very easily because now objects will move in the way you're seeing them. Use key 1 to toggle relative positioning on/off. Its turned on by default.
2)All the objects that are saved in the objects.ini are automatically reloaded on server start!

UPDATE- v3
1) Added autosave feature! Use /loadautosaved to load all objects from autosaved section in objects.ini
2) Added better method of changing object's angles which is simple and wayyy less confusing.

Version 1 download link- Mapping.zip
Version 2 download link- Mappingv2.rar
With regards,
KP
------------------------------------------

soulshaker

Atlast you released this :D
Really helpful

DizzasTeR

Basically this one is very close to mine, not trying to show off here but i made a better controlling of object in my editor :D i may release that in future. This one is basic but good enough.

So yeah nice Job. ;)

MacTavish


Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Mashreq

Your great effort in script can be seen here.
Good job mate.

Sebastian

Even if this could be a lot better, it is still a good start. ;)
I like that you select the object by shooting it.
Also, after 2-3 mins of playing with the object, I learnt how to control everything. Seems easy.



PS: The objects.ini should be placed in the same folder with the server.exe.

Gulk

#6
Thanks thisll make a few ideas i have much easier

, wait; how do I load it?

DontKnowScripting:(

#7


Everything is working fine but error occurs when I press p it doesn't work. Please help


[MODULE]  Loaded SqVCMP 0.4 frontend by Stormeus. (v1.0)
[SCRIPT]  ==loading object editing class
[SCRIPT]  ==object editing class loaded==
[SCRIPT]  ==binding keys==
[SCRIPT]  ==Keys have been binded==
[MODULE]  Loaded server.conf Loader for 0.4 by Stormeus
[ERROR]   server.conf does not exist.

Player 'DontKnowScripting' ID 0 connected.
[SCRIPT]  CreateObject(603,1,Vector(-630.644, 742.464, 11.429),255).RotateToEuler(Vector(0, 0, 0),1);

AN ERROR HAS OCCURED [the index 'WriteIniString' does not exist]

CALLSTACK
*FUNCTION [onKeyDown()] KeyDown.nut line [45]

LOCALS
[o] INSTANCE
[key] 15
[player] INSTANCE
[this] TABLE
Masterlist master.vc-mp.ovh failed with error 408 while attempting to list this server.


I have not changed any script .

HELPPPP :(

DizzasTeR

You forgot the INI plugin, download it and list it in the plugins line included in server.cfg

DontKnowScripting:(


SAzEe21

Thank you kp for that.. nyc job.

EK.IceFlake

Quote from: DontKnowScripting:( on May 01, 2015, 05:48 PM

Everything is working fine but error occurs when I press p it doesn't work. Please help


[MODULE]  Loaded SqVCMP 0.4 frontend by Stormeus. (v1.0)
[SCRIPT]  ==loading object editing class
[SCRIPT]  ==object editing class loaded==
[SCRIPT]  ==binding keys==
[SCRIPT]  ==Keys have been binded==
[MODULE]  Loaded server.conf Loader for 0.4 by Stormeus
[ERROR]   server.conf does not exist.

Player 'DontKnowScripting' ID 0 connected.
[SCRIPT]  CreateObject(603,1,Vector(-630.644, 742.464, 11.429),255).RotateToEuler(Vector(0, 0, 0),1);

AN ERROR HAS OCCURED [the index 'WriteIniString' does not exist]

CALLSTACK
*FUNCTION [onKeyDown()] KeyDown.nut line [45]

LOCALS
[o] INSTANCE
[key] 15
[player] INSTANCE
[this] TABLE
Masterlist master.vc-mp.ovh failed with error 408 while attempting to list this server.


I have not changed any script .

HELPPPP :(
OFFTOPIC Seriously are you hosting a VCMP server on a windows 10 developer preview!?

Thijn

Quote from: NE.CrystalBlue on Jun 12, 2015, 01:03 PM
Quote from: DontKnowScripting:( on May 01, 2015, 05:48 PMI have not changed any script .

HELPPPP :(
OFFTOPIC Seriously are you hosting a VCMP server on a windows 10 developer preview!?
Whats wrong with developing on a developer preview? The masterlist gives a 408 so he isnt hosting it for the outside anyways...

Stormeus

Quote from: NE.CrystalBlue on Jun 12, 2015, 01:03 PMOFFTOPIC Seriously are you hosting a VCMP server on a windows 10 developer preview!?

lol I've been developing VC:MP on the Windows 10 Insider Preview for months now

karan20000000000

Update released! See first post!
With regards,
KP
------------------------------------------