Welcome, Guest. Please login or register.
Did you miss your activation email?

+-G2D Visitors
+-Members Online
8 Guests, 0 Users
+-Recent Topics
G2D Client v4.0.1 Update by Jumpahead
Today at 06:05:30 PM

General Update - 8th December 2009 by Devo
May 03, 2012, 08:15:22 PM

Genesis2D V4.0 Download by Devo
May 01, 2012, 08:58:28 PM

Genesis2D - General Announcement 29th April 2012 by Devo
May 01, 2012, 09:41:13 AM

Genesis2D Forums « Forum « News and Announcements « Genesis2D News « G2D v3R7 Update
Pages: [1]   Go Down
  Print  
Author Topic: G2D v3R7 Update  (Read 499 times)
Devo
Site Owner
Administrator
Genesis2D Veteran
*
Offline Offline

Posts: 6146



WWW
« on: July 25, 2011, 10:22:52 AM »

Hello G2D Members,

* Please run your Matrix Launcher
This will inform you your server is out of date,  update it to the latest version V3R7
It will automatically replace the G2D_Server.exe file in your server folder
and update your server to the latest v3R7

* Please run your Client updater and update to the latest version V3R7
This will download the latest Client, it will not replace the previous, feel
free to delete that when you feel the need to.

PLEASE NOTE!
-----------------
Our fileservers have been a little slow in transferring data lately, you maye experience a slightly longer download than usual, this is normal, go make a coffee and come back Smiley


Updates / Changes:
==============

This update addresses a few small issues, we will be releasing a new patch
very soon to address other problems (such as the fullscreen player dissapearing
bug and other things.)

G2D v3R7 Server Additions / Fixes
------------------------------------------
*New small script editor added to the Script console (Event Editor) Now you can edit events *.g2d
from within the server itself, from the Script Console
* Script console expanded and redesigned.
* Map Console crash in environment option fixed
* Fixed an issue warping players from the server
* Fixed a small issue with giving stacked items from the server console

Scripting Additions
------------------------

 (Thanks Ed who coded it, and also thanks avatarluke for pushing us to add/fix these things)

SaveMap(Map Index)
Saves all non-permanent changes made to the map by the Creator functions.

RefreshPlayer(Index)
Re-sends the map to the player if any changes were made

AttributeCreator(MapNum, X, Y, Attribute, Layer, DeteleRest, Permenant, AllMap, Player
Adds an attribute to the specified tile

NpcCreator(MapNum, Npc Num, Npc Slot, Spawn X, Spawn Y)
Edits the npc in the specified slot

List of attributes:
BLOCKED = 1
WARP = 2
ITEM = 3
NPC AVOID = 4
KEY = 5
KEYOPEN = 6
HEAL = 7
KILL = 8
SHOP = 9
CLASS BLOCK = 10
ARENA = 11
SOUND = 12
SIGN = 13
DOOR = 14
NOTICE = 15
CLASS CHANGE = 16
SCRIPTED = 17
BANK = 18
BUY HOUSE = 19
HOUSE = 20
ROOF = 21
ROOF BLOCK = 22
SPAWN GATE = 26
BUY GUILD HOUSE = 28
GUILD HOUSE = 29
WATER = 30
DOCK = 32
ARENA ENTER = 33
ARENA EXIT = 34
PLANET = 36
RESOURCE = 37
PLANT = 39


G2D v3R7 Client Updates
*Updated client to reflect scripting changes.
*Fixed NPC Flocking NorthWest AI (Thanks Xaden)


We will be posting a general update soon on other issues we are working on,
keep you posted,

regards,

The G2D Team.
« Last Edit: July 25, 2011, 10:38:10 AM by Devo » Logged

avatarluke
G2D Donator
Regular Member
*
Offline Offline

Posts: 394


C++/Qt Developer


« Reply #1 on: July 25, 2011, 12:21:30 PM »

Yay!! I am glad Ed did all of the scripting commands!!

But I have a little problem. The explanation for the Attribute Creator doesn't make sense.

This was the old script explanation:
Quote
AttributeCreator(MAP NUMBER, X VALUE, Y VALUE, TYPE, DATA1, DATA2, DATA3, STRING1, STRING2, STRING3,
PERMANENT, ALL ON MAP, PLAYER INDEX)

 Another of the complicated ones. It creates an attribute at the selected tile.
 Map        -  The map number you want to edit.
 X          -  The x value you want to put the tile at.
 Y          -  The y value you want to put the tile at.
 AtType     -  The type of attribute you want to create.
 Data1      -
 Data2      -
 Data3      -  Look in the source for specific values you need to enter for the type.
 String1    -  Email me if you need a detailed explanation and I'll make a guide (and include it in future downloads)
 String2    -
 String3    -
 Permanent  -  Can be "1" or "0". A "1" value will make the changes permanent, a "0" will make temporary attributes.
                       THE ONLY WORKING TEMPORARY TYPES ARE BLOCKED AND WALKABLE!!!
 AllOnMap   -  Can be "1" or "0". A "1" value will send the changes to all the players on the map.
 Index      -  Only used if AllOnMap = "0". The player index that you want to send the changes to.

Example:
Call AttributeCreator(GetPlayerMap(index), 5, 7, 1, 0, 0, 0, "", "", "", 0, 1, index)

The new one doesn't have any of the Data's or Strings need for the script.  It might just be a typo or I don't get it but can this be explained a little more? Or was the data and string section taken out?

Oh and the Scripting Commands page needs to be updated  Wink
« Last Edit: July 25, 2011, 12:28:40 PM by avatarluke » Logged

C++
EdTheHobo
Administrator
Active Member
*
Offline Offline

Posts: 228


« Reply #2 on: July 25, 2011, 03:06:53 PM »

Yay!! I am glad Ed did all of the scripting commands!!

But I have a little problem. The explanation for the Attribute Creator doesn't make sense.

This was the old script explanation:
Quote
AttributeCreator(MAP NUMBER, X VALUE, Y VALUE, TYPE, DATA1, DATA2, DATA3, STRING1, STRING2, STRING3,
PERMANENT, ALL ON MAP, PLAYER INDEX)

 Another of the complicated ones. It creates an attribute at the selected tile.
 Map        -  The map number you want to edit.
 X          -  The x value you want to put the tile at.
 Y          -  The y value you want to put the tile at.
 AtType     -  The type of attribute you want to create.
 Data1      -
 Data2      -
 Data3      -  Look in the source for specific values you need to enter for the type.
 String1    -  Email me if you need a detailed explanation and I'll make a guide (and include it in future downloads)
 String2    -
 String3    -
 Permanent  -  Can be "1" or "0". A "1" value will make the changes permanent, a "0" will make temporary attributes.
                       THE ONLY WORKING TEMPORARY TYPES ARE BLOCKED AND WALKABLE!!!
 AllOnMap   -  Can be "1" or "0". A "1" value will send the changes to all the players on the map.
 Index      -  Only used if AllOnMap = "0". The player index that you want to send the changes to.

Example:
Call AttributeCreator(GetPlayerMap(index), 5, 7, 1, 0, 0, 0, "", "", "", 0, 1, index)

The new one doesn't have any of the Data's or Strings need for the script.  It might just be a typo or I don't get it but can this be explained a little more? Or was the data and string section taken out?

Oh and the Scripting Commands page needs to be updated  Wink

Oh crap, I knew I forgot something Angry that part wasn't copied over, sorry
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal