Vice City: Multiplayer

Server Development => Scripting and Server Management => Script Showroom => Topic started by: karan20000000000 on Apr 21, 2015, 04:18 PM

Title: [FilterScript] Map Editing Script
Post by: karan20000000000 on Apr 21, 2015, 04:18 PM
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: (http://files.thijn.ovh/img/350a8a55ac4ffd4a4bfcc6776a2bad40/mappingv3.rar) (http://files.thijn.ovh/download/350a8a55ac4ffd4a4bfcc6776a2bad40/mappingv3.rar)

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 (http://kp.vcmp.in/mapping.zip)
Version 2 download link- Mappingv2.rar (http://kp.vcmp.in/mappingv2.rar)
Title: Re: [FilterScript] Map Editing Script
Post by: soulshaker on Apr 21, 2015, 04:23 PM
Atlast you released this :D
Really helpful
Title: Re: [FilterScript] Map Editing Script
Post by: DizzasTeR on Apr 21, 2015, 04:32 PM
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. ;)
Title: Re: [FilterScript] Map Editing Script
Post by: MacTavish on Apr 21, 2015, 04:36 PM
Great KP :D very helpfull
Title: Re: [FilterScript] Map Editing Script
Post by: Mashreq on Apr 21, 2015, 04:59 PM
Your great effort in script can be seen here.
Good job mate.
Title: Re: [FilterScript] Map Editing Script
Post by: Sebastian on Apr 21, 2015, 07:54 PM
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.

(http://i.imgur.com/3NwfpHvs.jpg) (http://i.imgur.com/3NwfpHv.png)

PS: The objects.ini should be placed in the same folder with the server.exe.
Title: Re: [FilterScript] Map Editing Script
Post by: Gulk on Apr 21, 2015, 11:50 PM
Thanks thisll make a few ideas i have much easier

, wait; how do I load it?
Title: Re: [FilterScript] Map Editing Script
Post by: DontKnowScripting:( on May 01, 2015, 05:48 PM
(http://s1.postimg.org/9tmdr6hnj/Screenshot_1.png) (http://postimg.org/image/sly8ure1n/full/)

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 :(
Title: Re: [FilterScript] Map Editing Script
Post by: DizzasTeR on May 01, 2015, 05:52 PM
You forgot the INI plugin, download it and list it in the plugins line included in server.cfg
Title: Re: [FilterScript] Map Editing Script
Post by: DontKnowScripting:( on May 01, 2015, 05:56 PM
Thanks Doom and karan
Title: Re: [FilterScript] Map Editing Script
Post by: SAzEe21 on May 19, 2015, 09:24 AM
Thank you kp for that.. nyc job.
Title: Re: [FilterScript] Map Editing Script
Post by: EK.IceFlake on Jun 12, 2015, 01:03 PM
Quote from: DontKnowScripting:( on May 01, 2015, 05:48 PM(http://s1.postimg.org/9tmdr6hnj/Screenshot_1.png) (http://postimg.org/image/sly8ure1n/full/)

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!?
Title: Re: [FilterScript] Map Editing Script
Post by: Thijn on Jun 12, 2015, 04:16 PM
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...
Title: Re: [FilterScript] Map Editing Script
Post by: Stormeus on Jun 12, 2015, 04:26 PM
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
Title: Re: [FilterScript] Map Editing Script
Post by: karan20000000000 on Jul 01, 2015, 06:13 PM
Update released! See first post!
Title: Re: [FilterScript] Map Editing Script
Post by: kokia on Jul 18, 2015, 11:24 AM
help i tried v2 and v1 on blank script but it didnt work it says Vice City Multiplayer Server
 -------------------------------
 v0.4, (c) 2007-2014 VC:MP Team

Loaded plugin: squirrel04rel32

Loaded plugin: xmlconf04rel32

Loaded plugin: announce04rel32

[WEAPONS] No custom weapons to load.
announcer: master.vc-mp.org timed out while trying to reach your server; are your ports forwarded?
[MODULE]  Loaded SqVCMP 0.4 frontend by Stormeus. (v1.0)

AN ERROR HAS OCCURED [cannot open the file]

CALLSTACK
*FUNCTION [onScriptLoad()] scripts/main.nut line [30]

LOCALS
[this] TABLE
[WARNING] onScriptLoad failed to execute -- check the console for more details.
my 30 line   dofile("mapping.nut");pls help
Title: Re: [FilterScript] Map Editing Script
Post by: Thijn on Jul 18, 2015, 11:33 AM
Then the mapping.nut file can't be found. What's so hard to understand about that error?
Note that the script loads from the root directory of your server. So in this case you probably want to do dofile("scripts/mapping.nut");
Title: Re: [FilterScript] Map Editing Script
Post by: Thijn on Jul 18, 2015, 11:38 AM
Quote from: karan20000000000 on Jul 18, 2015, 11:35 AMThe thing is you've put all the .nut files in a folder named 'scripts'. So, in order to make sure that all the .nut files are connected to the main script you need to add "scripts/" to all dofile statements, like:-
dofile("scripts/mapping.nut");Do it for other dofile statements yourself.
Do you actually read replies before posting?
Title: Re: [FilterScript] Map Editing Script
Post by: karan20000000000 on Jul 18, 2015, 11:40 AM
Quote from: Thijn on Jul 18, 2015, 11:38 AMDo you actually read replies before posting?
Sorry, removed it.
Title: Re: [FilterScript] Map Editing Script
Post by: karan20000000000 on Aug 27, 2015, 02:14 PM
Update to version 3 released. Check first post!
Title: Re: [FilterScript] Map Editing Script
Post by: Xmair on Aug 27, 2015, 02:20 PM
Nice work, But you should also make XML statement in .ini :)
Title: Re: [FilterScript] Map Editing Script
Post by: KAKAN on Aug 27, 2015, 02:23 PM
Nice work? HELL NO
ITS Great Work!
Title: Re: [FilterScript] Map Editing Script
Post by: Striker on Jun 25, 2016, 03:51 PM
Where is the link :(?
Title: Re: [FilterScript] Map Editing Script
Post by: KAKAN on Jun 25, 2016, 05:20 PM
Quote from: Striker on Jun 25, 2016, 03:51 PMWhere is the link :(?
See the first post.
Title: Re: [FilterScript] Map Editing Script
Post by: Cool on Jun 25, 2016, 08:15 PM
Quote from: KAKAN on Jun 25, 2016, 05:20 PM
Quote from: Striker on Jun 25, 2016, 03:51 PMWhere is the link :(?
See the first post.
link are expired
Title: Re: [FilterScript] Map Editing Script
Post by: DizzasTeR on Jun 25, 2016, 09:31 PM
Quote from: Hercules on Jun 25, 2016, 08:15 PMlink are expired

This editor is expired too...

@karan20000000000, please don't hurt me.
Title: Re: [FilterScript] Map Editing Script
Post by: EK.IceFlake on Jun 26, 2016, 06:31 AM
I have my own version of this editor that makes the objects move smoothly and if I remember correctly, a sensitivity command. Do you want that version?
Title: Re: [FilterScript] Map Editing Script
Post by: Xmair on Jun 26, 2016, 06:35 AM
No.
Title: Re: [FilterScript] Map Editing Script
Post by: Finch Real on Jun 26, 2016, 07:47 AM
What's need of this Editor When there is most advànced editor
http://forum.vc-mp.org/?topic=1303.0
Title: Re: [FilterScript] Map Editing Script
Post by: Xmair on Jun 26, 2016, 09:18 AM
Quote from: Finch Real on Jun 26, 2016, 07:47 AMWhat's need of this Editor When there is most advànced editor
http://forum.vc-mp.org/?topic=1303.0
This editor was posted before doom released his editor. Old is gold.
Title: Re: [FilterScript] Map Editing Script
Post by: karan20000000000 on Jun 26, 2016, 01:06 PM
Quote from: Striker on Jun 25, 2016, 03:51 PMWhere is the link :(?
Sorry, for the late reply, I was busy :[
Here's the link: (http://files.thijn.ovh/img/350a8a55ac4ffd4a4bfcc6776a2bad40/mappingv3.rar) (http://files.thijn.ovh/download/350a8a55ac4ffd4a4bfcc6776a2bad40/mappingv3.rar)

Quote from: Doom_Kill3R on Jun 25, 2016, 09:31 PM
Quote from: Hercules on Jun 25, 2016, 08:15 PMlink are expired

This editor is expired too...

@karan20000000000, please don't hurt me.
Nobody gave you the authority to declare it expired. u momo!

Quote from: Finch Real on Jun 26, 2016, 07:47 AMWhat's need of this Editor When there is most advànced editor
http://forum.vc-mp.org/?topic=1303.0
Pretty advanced. top kek
There's no need to solicit for his editor over here, if this guy wanted doom's map editor he could have searched for that map editor himself.

Title: Re: [FilterScript] Map Editing Script
Post by: Cool on Jun 26, 2016, 03:35 PM
Works perfect and easy to and as finch say here is an advanced mapping available so its wrong becuase i cant understand his mapping editing sofware how to use its easy :D
Can i move inbuilt objects?
Title: Re: [FilterScript] Map Editing Script
Post by: karan20000000000 on Jun 26, 2016, 03:44 PM
Quote from: Hercules on Jun 26, 2016, 03:35 PMWorks perfect and easy to and as finch say here is an advanced mapping available so its wrong becuase i cant understand his mapping editing sofware how to use its easy :D
Can i move inbuilt objects?
Yes, with the new update in vc-mp's version to 04rel004 its possible, but I'll have to update my script for that, which I'll hopefully do soon.
Title: Re: [FilterScript] Map Editing Script
Post by: DizzasTeR on Jun 26, 2016, 04:14 PM
It was just a joke, @karan20000000000 is my friend, and I can't neglect the work he did to make this editor so yeah, it was just for him. Ofcourse its upon the user's choice which one suits him the best to use ;)

P.S: Mine isn't hard at all lmao
Title: Re: [FilterScript] Map Editing Script
Post by: KAKAN on Jun 26, 2016, 04:19 PM
Quote from: Doom_Kill3R on Jun 26, 2016, 04:14 PMP.S: Mine isn't hard at all lmao
Yep, it's for the non-english fellows and for the ones who don't have patience to read a small topic :p
Title: Re: [FilterScript] Map Editing Script
Post by: Finch Real on Jun 26, 2016, 05:21 PM
Quote from: Hercules on Jun 26, 2016, 03:35 PMWorks perfect and easy to and as finch say here is an advanced mapping available so its wrong becuase i cant understand his mapping editing sofware how to use its easy :D
Can i move inbuilt objects?
Just need a brain if you dont have buy it from sunday bazar

Quote from: karan20000000000 on Jun 26, 2016, 01:06 PM
Quote from: Striker on Jun 25, 2016, 03:51 PMWhere is the link :(?
Sorry, for the late reply, I was busy :[
Here's the link: (http://files.thijn.ovh/img/350a8a55ac4ffd4a4bfcc6776a2bad40/mappingv3.rar) (http://files.thijn.ovh/download/350a8a55ac4ffd4a4bfcc6776a2bad40/mappingv3.rar)

Quote from: Doom_Kill3R on Jun 25, 2016, 09:31 PM
Quote from: Hercules on Jun 25, 2016, 08:15 PMlink are expired

This editor is expired too...

@karan20000000000, please don't hurt me.
Nobody gave you the authority to declare it expired. u momo!

Quote from: Finch Real on Jun 26, 2016, 07:47 AMWhat's need of this Editor When there is most advànced editor
http://forum.vc-mp.org/?topic=1303.0
Pretty advanced. top kek
There's no need to solicit for his editor over here, if this guy wanted doom's map editor he could have searched for that map editor himself.



My bad
Title: Re: [FilterScript] Map Editing Script
Post by: Cool on Jun 26, 2016, 05:29 PM
Quote from: Finch Real on Jun 26, 2016, 05:21 PM
Quote from: Hercules on Jun 26, 2016, 03:35 PMWorks perfect and easy to and as finch say here is an advanced mapping available so its wrong becuase i cant understand his mapping editing sofware how to use its easy :D
Can i move inbuilt objects?
Just need a brain if you dont have buy it from sunday bazar
Mininimum i am happy to see i am better than you you are totally noob and telling me about about brain if you want you buy
Title: Re: [FilterScript] Map Editing Script
Post by: Finch Real on Jun 27, 2016, 06:38 AM
Quote from: Hercules on Jun 26, 2016, 05:29 PM
Quote from: Finch Real on Jun 26, 2016, 05:21 PM
Quote from: Hercules on Jun 26, 2016, 03:35 PMWorks perfect and easy to and as finch say here is an advanced mapping available so its wrong becuase i cant understand his mapping editing sofware how to use its easy :D
Can i move inbuilt objects?
Just need a brain if you dont have buy it from sunday bazar
Mininimum i am happy to see i am better than you you are totally noob and telling me about about brain if you want you buy
Really? Seriously?
I don't want to use bad words here or bump here and to increase my posts like you
I think now karan should lock it
Title: Re: [FilterScript] Map Editing Script
Post by: EK.IceFlake on Jun 27, 2016, 10:42 AM
STOP USELESS POSTS BEFORE THIJN OR KARAN LOCKS THIS
Title: Re: [FilterScript] Map Editing Script
Post by: karan20000000000 on Jun 27, 2016, 02:42 PM
Quote from: ext-d.CrystalBlue on Jun 27, 2016, 10:42 AMSTOP USELESS POSTS BEFORE THIJN OR KARAN LOCKS THIS
Thanks for the idea, if thijn locks this I won't be able to unlock it, so I better lock it myself :P