[Include] [INC] WireZ + WireZinfinity (MTA --> SA-MP direct)
#1

WireZ
_____________
WireZinfinity
MTA map streamer addon
|----------------------------------------Preview----------------------------------------|
~From this~
MTA
~To this~
SA-MP
With just one line of code
Code:
LoadObjects(filename[]);

|----------------------------------------About----------------------------------------|
WireZ comes in two flavors: WireZ and WireZinfinity

They both currently support two streamers
Midostream
Incognito's Streamer Plugin
So what is WireZ?
WireZ is an include scripted to build wires from MTA .map files to your gamemode, directly
No converters are needed, no copying large text into your gamemode, then sorting it out
WireZ does all the converting for you, and links these objects to your favorite streamer
All you have to do is write one line for every map you want to stream
What is WireZinfinity?
WireZinfinity is a modified flavor of WireZ
The infinity version lets you Unload maps as well as stream them
Although, this comes at a price, streamed objects are limited to 5000 objects
|----------------------------------------Download----------------------------------------|
WireZ (Incognito's SP supported) WireZ (Midostream supported)
WireZinfinity (Incognito's SP supported) WireZinfinity (Midostream supported)
Both flavors with support for all WireZ supported streamers
_________________________________________________


Notes

When using WireZ, it automatically detects whether the map you are loading is from New MTA or from Old MTA
WireZ can load both versions, but New MTA maps have more functionality

Each Streamer supported version needs the required streamer...

If you would like a streamer supported, please post the direct link to a WORKING download to it

The source files are the .inc files, so please don't post asking where the source is...(Plus, I was too damn tired to post additional downloads)

READ INSTRUCTIONS CAREFULLY AND THORUGHLY!!!

Usage

WireZinfinity (Incognito Streamer Plugin supported)

The infinity version of WireZ only lets you stream unlimited objects

Notes: (Please read, so as not to get confused)
-FileName[] must be replaced by the map you want to load (Look at example)
-Must include the file's extension

-With the new MTA maps, interior id can be set to auto (Whereby, the interior you placed you objects in MTA determines the interiorid)
-NEW MTA MAPS ONLY: Interior must be replaced by -2 (See above note), -1 (Streaming for all interiorids) or an InteriorID number of your choice
-OLD MTA MAPS ONLY: Interior must be replaced by -1(Stream for all interiorids) or an InteriorID number of your choice


Installation:
- Copy WireZinfinity.inc to your includes folder
- Include (At the top of your gamemode/filterscript)
Code:
#include <WireZinfinity >
- Place the map you want to load anywhere in your scriptfiles folder (Can be in a subfolder)


Functions:
Code:
LoadObjects(FileName[], interior, playerid, Float:distance);
Examples:
public OnPlayerConnect(playerid)
Code:
LoadObjects("test.map", -2, playerid, 200.0); // Automatically streams for created interiorid (For new MTA maps ONLY!!!)
public OnPlayerConnect(playerid)
Code:
LoadObjects("tracks/track2.track", 0, playerid, 500.0); // Streaming map track2.track from the file tracks into interior world id 0
WireZ (Incognito Streamer Plugin supported)

WireZ allows for Loaded objects to be unloaded via their file names

Notes: (Please read, so as not to get confused)
-FileName[] must be replaced by the map you want to load (Look at example)
-Must include the file's extension

-With the new MTA maps, interior id can be set to auto (Whereby, the interior you placed you objects in MTA determines the interiorid)
-NEW MTA MAPS ONLY: Interior must be replaced by -2 (See above note), -1 (Streaming for all interiorids) or an InteriorID number of your choice
-OLD MTA MAPS ONLY: Interior must be replaced by -1(Stream for all interiorids) or an InteriorID number of your choice

-OBJECT LIMITATIONS (WireZ only): 5000


Installation:
- Copy WireZ.inc to your includes folder
- Include (At the top of your gamemode/filterscript)
Code:
#include <WireZ>
- Place the map you want to load anywhere in your scriptfiles folder (Can be in a subfolder)


Functions:
Code:
LoadObjects(FileName[], interior, playerid, Float:distance);
UnloadObjects(FileName[]);
Examples:
public OnPlayerConnect(playerid)
Code:
LoadObjects("test.map", -2, playerid, 200.0); // Automatically streams for created interiorid (For new MTA maps ONLY!!!)
public OnPlayerConnect(playerid)
Code:
UnloadObjects("test.map"); // Unloads all the objects contained within the map defined, if there is no map, it gives an error in the console...

WireZinfinity (Midostream supported)

The infinity version of WireZ only lets you stream unlimited objects

Notes: (Please read, so as not to get confused)
-FileName[] must be replaced by the map you want to load (Look at example)
-Must include the file's extension

-With the Midostream supported version, there is no interiorid stream


Installation:
- Copy WireZinfinity.inc to your includes folder
- Include (At the top of your gamemode/filterscript)
Code:
#include <WireZinfinity >
- Place the map you want to load anywhere in your scriptfiles folder (Can be in a subfolder)


Functions:
Code:
LoadObjects(FileName[], Float:distance);
Examples:
public OnPlayerConnect(playerid)
Code:
LoadObjects("test.map", 200.0); // Streaming at a distance of 200 units
public OnPlayerConnect(playerid)
Code:
LoadObjects("tracks/track2.track", 500.0); // Streaming map track2.track from the file: tracks
WireZ (Midostream supported)

WireZ allows for Loaded objects to be unloaded via their file names


Notes: (Please read, so as not to get confused)
-FileName[] must be replaced by the map you want to load (Look at example)
-Must include the file's extension

-As with the previous infinity flavor version of WireZ, object limit is 5000


Installation:
- Copy WireZ.inc to your includes folder
- Include (At the top of your gamemode/filterscript)
Code:
#include <WireZ >
- Place the map you want to load anywhere in your scriptfiles folder (Can be in a subfolder)


Functions:
Code:
LoadObjects(FileName[], Float:distance);
LoadObjects(FileName[]);
Examples:
public OnPlayerConnect(playerid)
Code:
LoadObjects("test.map", 200.0); // Streaming at a distance of 200 units
public OnPlayerConnect(playerid)
Code:
UnloadObjects("tracks/track2.track"); // Unloads the objects that were loaded from the track2.map map from the file: tracks
Reply
#2

Whew, finally finished that Monster Mammoth thread!

Lolz, please read EVERYTHING carefully

(Reserved)
Reply
#3

Good work, now i don't need to use converters and all that stuff
Reply
#4

Damn, damn, amazing work Zinglish nice idea though, how long u tooked to do so?
Reply
#5

Quote:
Originally Posted by RoamPT
Damn, damn, amazing work Zinglish nice idea though, how long u tooked to do so?
About two days, total

It took me one day to prototype it, but then I cut it off my projects list, because it wasn't working so nice, but then I started it again because I saw someone posting that they were sick of converters

I also learned a lot from my VB converter...I used the same principles to dynamically create the objects from workable files.

As for the thread...well, that took a whole day to write And I still don't think I have posted all the info...>.<

And thanks
Reply
#6

WOW what a great idea.I am able to erase about useless 3800 lines from my GM!!!
Reply
#7

Nice work.
Reply
#8

Zinglish ur a GOD ^^

well done dude ^^


we will add this soon as possible to our server ^^
Reply
#9

sound good
Reply
#10

Very nice. Very useful. Good job.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)