Custom Teleport crashes

07/12/2013 11:27 magicanoo#1
Hi,

I'm adding a new teleport buildings,and everything seems fine on both client and server side,but whenever I click on the option "Select Teleport area" the client crashes..

I added the structure line to characterdata aswell as teleportbuilding,modified telelink.txt,textdate_object.txt and teleportdata.txt

Any idea?
07/12/2013 11:43 flozz#2
wrong teleportdata, check it :p
07/12/2013 12:35 Anonymous-6723#3
as flozz said wrong teleportdata, hint: not everything u see in the table _RefTeleport has to be in the textdata too ^^
07/12/2013 17:42 magicanoo#4
Interesting..

Thanks guys,problem fixed.
11/21/2013 14:45 blapanda#5
Do you mind explaining what you've done?
I have the same issue, crashing near my custom teleporter.
My teleportdata:

Code:
....x	27860	704	640	1722	10	0	0	62
1	204	GATE_ARENA_EVENT_GHOST_A_GATE	0	xxx	28120	1276	221	219	10	0	0	85
1	205	GATE_ARENA_EVENT_GHOST_B_GATE	0	xxx	28120	1276	221	219	10	0	0	85
1	206	GATE_EU_TO_JUPITER_FIELD	41780	SN_JUPITER_FIELD_TO_EU	25158	1506	476	27	50	0	0	1
1	207	GATE_JUPITER_FIELD_TO_EU	41781	SN_EU_TO_JUPITER_FIELD	23498	253	-204	1519	50	1	0	90
1	208	GATE_JUPITER_FIELD_TO_JUPITER	41782	SN_JUPITER_TO_JUPITER_FIELD	22219	837	475	1901	50	1	0	90
1	209	GATE_JUPITER_A_1	41783	SN_JUPITER_A_1_GATE_1	32236	950	880	900	25	0	0	86
1	210	GATE_JUPITER_A_2	41784	SN_JUPITER_A_2_GATE_1	32236	830	880	900	25	0	0	88
1	211	GATE_JUPITER_B_1	41785	SN_JUPITER_B_1_GATE_1ATE	-32746	-2	1	-137	25	0	0	87
1	212	GATE_JUPITER_B_2	41786	SN_JUPITER_B_2_GATE_1ATE	-32746	-3	1	-131	25	0	0	89
1	213	GATE_JUPITER_B2_START	41787	SN_JUPITER_B_2_GATE_1ATE	-32746	1080	1	630	25	0	0	89
1	214	GATE_JUPITER_B1_START	41788	SN_JUPITER_B_1_GATE_1ATE	-32746	1700	1	900	25	0	0	87
1	215	GATE_JUPITER_B1_1_TO_JUPITER	41789	SN_JUPITER_B_1_GATE_1ATE	-32746	-1423	1	839	50	0	0	87
1	216	GATE_JUPITER_B1_2_TO_JUPITER	41790	SN_JUPITER_B_1_GATE_1ATE	-32746	46	1	-1697	50	0	0	87
1	217	GATE_JUPITER_B2_1_TO_JUPITER	41791	SN_JUPITER_B_1_GATE_1ATE	-32746	-1418	1	838	50	0	0	89
1	218	GATE_JUPITER_B2_2_TO_JUPITER	41792	SN_JUPITER_B_1_GATE_1ATE	-32746	48	1	-1698	50	0	0	89
1	219	GATE_JUPITER_A0_START	41793	SN_JUPITER_A0_START_GATE_1	32236	950	880	900	25	0	0	93
1	220	GATE_JUPITER_B0_START	41794	SN_JUPITER_B0_START_GATE_1	-32746	-2	1	-137	25	0	0	94
1	221	GATE_JUPITER_B0_1	41795	SN_JUPITER_B0_1_GATE	-32746	46	1	-1697	25	0	0	94
1	222	GATE_JUPITER_B0_2	41796	SN_JUPITER_B0_2_GATE	-32746	-1423	1	839	25	0	0	94
1	223	GATE_JUPITER_B0_3	41797	SN_JUPITER_B0_3_GATE	-32746	1700	1	900	25	0	0	94
//Custom Teleporter
1	224	GATE_Graveyard	41798	SN_STORE_Graveyard	23980	997	277	558	30	0	0	1
11/21/2013 15:01 Kape7#6
Does the objectID exists on teleportbuilding.txt?
11/21/2013 21:04 blapanda#7
Quote:
Originally Posted by Synx7 View Post
Does the objectID exists on teleportbuilding.txt?
Yep it does. I will just post the references of any string:

teleportdata.txt
Code:
1	224	GATE_GRAVEYARD	41798	SN_STORE_GRAVEYARD	23980	997	277	558	30	0	0	1	1	0
teleportbuilding.txt
Code:
1	41798	STORE_GRAVEYARD	GRAVEYARD	xxx	SN_STORE_GRAVEYARD	xxx	0	0	4	1	1	0	0	3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	0	-1	0	-1	0	-1	0	-1	23980	0	1137	292	461	0	0	50	50	30	0	quest\teleport01.bsr	xxx	xxx	xxx	xxx	81
teleportlink.txt
Code:
1	1	224	1000	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
1	224	1	1000	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
textdata_object.txt
Code:
1	SN_STORE_GRAVEYARD	??? ??? ?? ???	0	0	0	0	0	Graveyard	Graveyard	0	0	0	0	0	0

I am using this query for the process of adding the teleport object and teleport spot near the object
Code:
USE SRO_VT_SHARD


DECLARE @Teleport VARCHAR (64)
DECLARE @CHARNAME1 VARCHAR (30)
DECLARE @CHARNAME2 VARCHAR (30)
DECLARE @OwnTeleport INT
DECLARE @Fee INT
DECLARE @RequiredLVL INT

SET @Teleport = 'GRAVEYARD'
SET @CHARNAME1 = 'TELEPORT1' -- Teleport position
SET @CHARNAME2 = 'TELEPORT2' -- Spawn position
SET @OwnTeleport = 1
SET @Fee = 1000
SET @RequiredLVL = 0

IF EXISTS (SELECT CodeName128 FROM _RefObjCommon WHERE CodeName128 = 'STORE_'+@Teleport)
 BEGIN
  raiserror('The stated teleportname of %s is already existing!',11,1,@Teleport);
  RETURN;
 END
    
    DECLARE @MAXOBJ INT = (SELECT MAX (ID) FROM _RefObjCommon)+1
    DECLARE @REGION1 INT SET @REGION1 = (SELECT (LatestRegion) FROM _Char WHERE CharName16 = @CHARNAME1)
    DECLARE @POSX1 INT SET @POSX1 = (SELECT (POSX) FROM _Char WHERE CharName16 = @CHARNAME1)
    DECLARE @POSY1 INT SET @POSY1 = (SELECT (POSY) FROM _Char WHERE CharName16 = @CHARNAME1)
    DECLARE @POSZ1 INT SET @POSZ1 = (SELECT (POSZ) FROM _Char WHERE CharName16 = @CHARNAME1)
    DECLARE @LINK INT = (SELECT MAX (ID) FROM _RefObjStruct)+1
     
	SET IDENTITY_INSERT _RefObjCommon ON
    INSERT INTO _RefObjCommon (Service,ID,CodeName128,ObjName128,OrgObjCodeName128,NameStrID128,DescStrID128,CashItem,Bionic,TypeID1,TypeID2,TypeID3,TypeID4,DecayTime,Country,Rarity,CanTrade,CanSell,CanBuy,CanBorrow,CanDrop,CanPick,CanRepair,CanRevive,CanUse,CanThrow,Price,CostRepair,CostRevive,CostBorrow,KeepingFee,SellPrice,ReqLevelType1,ReqLevel1,ReqLevelType2,ReqLevel2,ReqLevelType3,ReqLevel3,ReqLevelType4,ReqLevel4,MaxContain,RegionID,Dir,OffsetX,OffsetY,OffsetZ,Speed1,Speed2,Scale,BCHeight,BCRadius,EventID,AssocFileObj128,AssocFileDrop128,AssocFileIcon128,AssocFile1_128,AssocFile2_128,Link) VALUES
    (1,@MAXOBJ,'STORE_'+@Teleport,@Teleport,'xxx','SN_STORE_'+@Teleport,'xxx',0,0,4,1,1,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,-1,0,-1,0,-1,0,-1,@REGION1,0,@POSX1,@POSY1,@POSZ1,0,0,50,50,30,0,'quest\ins_quest_teleport.bsr','xxx','xxx','xxx','xxx',@link)
    SET IDENTITY_INSERT _RefObjCommon OFF
	
	print ''
	print 'Add the following line to teleportbuilding.txt @server_dep\silkroad\textdata folder'
    print '1	'+CONVERT(varchar(max),@MAXOBJ)+'	'+'STORE_'+@Teleport+'	'+@Teleport+'	xxx	'+'SN_STORE_'+@Teleport+'	xxx	0	0	4	1	1	0	0	3	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	0	-1	0	-1	0	-1	0	-1	'+CONVERT(varchar(max),@REGION1)+'	0	'+CONVERT(varchar(max),@POSX1)+'	'+CONVERT(varchar(max),@POSY1)+'	'+CONVERT(varchar(max),@POSZ1)+'	0	0	50	50	30	0	quest\ins_quest_teleport.bsr	xxx	xxx	xxx	xxx	'+CONVERT(varchar(max),@link)
	print ''
	print 'Add the following line to textdata_object.txt @server_dep\silkroad\textdata folder'
	print ''
	print '1	'+'SN_STORE_'+@Teleport+'								'+@Teleport
	print ''
  	print ''

  SET IDENTITY_INSERT _RefObjStruct ON
  INSERT INTO _RefObjStruct (ID,Dummy_Data) VALUES
  (@LINK,0)
  SET IDENTITY_INSERT _RefObjStruct OFF
  
  DECLARE @MAXTELID INT = (SELECT MAX (ID) FROM _RefTeleport)+1
  DECLARE @WORLDID INT = (SELECT (WorldID) FROM _Char where CharName16 = @CHARNAME2)
  DECLARE @REGION2 INT SET @REGION2 = (SELECT (LatestRegion) FROM _Char WHERE CharName16 = @CHARNAME2)
  DECLARE @POSX2 INT SET @POSX2 = (SELECT (POSX) FROM _Char WHERE CharName16 = @CHARNAME2)
  DECLARE @POSY2 INT SET @POSY2 = (SELECT (POSY) FROM _Char WHERE CharName16 = @CHARNAME2)
  DECLARE @POSZ2 INT SET @POSZ2 = (SELECT (POSZ) FROM _Char WHERE CharName16 = @CHARNAME2)

  SET IDENTITY_INSERT _RefTeleport ON
  INSERT INTO _RefTeleport (Service,ID,CodeName128,AssocRefObjCodeName128,AssocRefObjID,ZoneName128,GenRegionID,GenPos_X,GenPos_Y,GenPos_Z,GenAreaRadius,CanBeResurrectPos,CanGotoResurrectPos,GenWorldID,BindInteractionMask,FixedService) VALUES
  (1,@MAXTELID,'GATE_'+@Teleport,'STORE_'+@Teleport,@MAXOBJ,'SN_STORE_'+@Teleport,@REGION2,@POSX2,@POSY2,@POSZ2,30,0,0,@WORLDID,1,0)
  SET IDENTITY_INSERT _RefTeleport OFF

  print ''
  print 'Add the following line to teleportdata.txt @server_dep\silkroad\textdata folder'
  print '1	'+CONVERT(varchar(max),@MAXTELID)+'	'+'GATE_'+@Teleport+'	'+CONVERT(varchar(max),@MAXOBJ)+'	'+'SN_STORE_'+@Teleport+'	'+CONVERT(varchar(max),@REGION2)+'	'+CONVERT(varchar(max),@POSX2)+'	'+CONVERT(varchar(max),@POSY2)+'	'+CONVERT(varchar(max),@POSZ2)+'	30	0	0	'+CONVERT(varchar(max),@WORLDID)+'	1	0'
  print ''
  print ''

  IF @RequiredLVL = 0
  BEGIN
    INSERT INTO _RefTeleLink (Service,OwnerTeleport,TargetTeleport,Fee,RestrictBindMethod,RunTimeTeleportMethod,CheckResult,Restrict1,Data1_1,Data1_2,Restrict2,Data2_1,Data2_2,Restrict3,Data3_1,Data3_2,Restrict4,Data4_1,Data4_2,Restrict5,Data5_1,Data5_2) VALUES
    (1,@OwnTeleport,@MAXTELID,@Fee,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
	INSERT INTO _RefTeleLink (Service,OwnerTeleport,TargetTeleport,Fee,RestrictBindMethod,RunTimeTeleportMethod,CheckResult,Restrict1,Data1_1,Data1_2,Restrict2,Data2_1,Data2_2,Restrict3,Data3_1,Data3_2,Restrict4,Data4_1,Data4_2,Restrict5,Data5_1,Data5_2) VALUES
    (1,@MAXTELID,@OwnTeleport,@Fee,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
	
print ''
	print 'Add the following lines to teleportlink.txt @server_dep\silkroad\textdata folder'
    print '1	'+CONVERT(varchar(max),@OwnTeleport)+'	'+CONVERT(varchar(max),@MAXTELID)+'	'+CONVERT(varchar(max),@Fee)+'	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0'
    print '1	'+CONVERT(varchar(max),@MAXTELID)+'	'+CONVERT(varchar(max),@OwnTeleport)+'	'+CONVERT(varchar(max),@Fee)+'	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0'
	print ''
  END
  ELSE BEGIN
	INSERT INTO _RefTeleLink (Service,OwnerTeleport,TargetTeleport,Fee,RestrictBindMethod,RunTimeTeleportMethod,CheckResult,Restrict1,Data1_1,Data1_2,Restrict2,Data2_1,Data2_2,Restrict3,Data3_1,Data3_2,Restrict4,Data4_1,Data4_2,Restrict5,Data5_1,Data5_2) VALUES
    (1,@OwnTeleport,@MAXTELID,@Fee,0,0,0,1,@RequiredLVL,999,0,0,0,0,0,0,0,0,0,0,0,0)
	
	print ''
	print ''
	print 'Add the following line to teleportlink.txt @server_dep\silkroad\textdata folder'
	print '1	'+CONVERT(varchar(max),@OwnTeleport)+'	'+CONVERT(varchar(max),@MAXTELID)+'	'+CONVERT(varchar(max),@Fee)+'	0	0	0	1	'+CONVERT(varchar(max),@RequiredLVL)+'	999	0	0	0	0	0	0	0	0	0	0	0	0'
    print ''

  END

print ''
print 'Done!'
The teleporter should be working ... but it doesn't. Firstly tried it on the old login screen, the "china_wharf", but since, I am as well being unable to load my character (shows an error with S1022 or something like that, server is offline, etc. blah blah), so I thought setting a test teleporter at the Tomb, south-east of jangan.

PS: I am always backing up my database, before trying something. If I am messing up something, and I will for sure, so I will be save upon retry. The files are in a stable state of the backup. No new adjustments, no custom teleporters, etc. just a regular vsro package.



As well, here are the 4 documents for the media.pk2.
Maybe there is something which is conflicting within the custom teleporter? Though, I cannot figure out which one conflicts anyway, since I removed the custom teleport relevant strings of the txt-files (media.pk2 wasn't clean, though, it was from EmpireSRO Fetih_1453).

Download:
[Only registered and activated users can see links. Click Here To Register...]
Virusscannadoodle (0/47):
[Only registered and activated users can see links. Click Here To Register...]
11/22/2013 22:15 magicanoo#8
"Crashes near the custom teleporter" isn't the same as "Crashes after clicking on it".

My problem occurred because I added an extra column to the custom teleportdata row.
11/23/2013 00:29 blapanda#9
Quote:
Originally Posted by magicanoo View Post
"Crashes near the custom teleporter" isn't the same as "Crashes after clicking on it".

My problem occurred because I added an extra column to the custom teleportdata row.
If you pointing it this way, it is meant "Right after being teleported, you will see the ground texture for a second and you will crash insta, without any errors".
Hope this will make it more clearly to understand.
11/23/2013 10:02 magicanoo#10
Quote:
Originally Posted by blapanda View Post
If you pointing it this way, it is meant "Right after being teleported, you will see the ground texture for a second and you will crash insta, without any errors".
Hope this will make it more clearly to understand.
Then,it's map-related issue not a teleport-related.Your teleport works fine,but double check the area that you're teleported to,can you warp there?
11/23/2013 14:22 blapanda#11
Quote:
Originally Posted by magicanoo View Post
Then,it's map-related issue not a teleport-related.Your teleport works fine,but double check the area that you're teleported to,can you warp there?
If I disable the teleporter (server and client sided), walk around there - it will work as usual.
It is the Tomb region, since China_Wharf didn't work, or won't work (not being able to login, if I set my coordinates upon that place).

What for map related issues could be the problem?
11/23/2013 16:46 magicanoo#12
Did you check the correct WorldID ?
Also show a picture of the error message you get in gameserver.
11/23/2013 18:16 blapanda#13
Well fck it, since no one is willing to offer any help. As well, fixed this issue on my own way. Took me more than 2 days, but fck it, yes.
Well, going to ask on maxigame, since THAT community is helping each other.

Most of you are bitching around "oqe turks r stupit yea krall kyng" etc. but they are more like a chain and helping each other. Get a slice of it!
06/29/2017 06:20 sasafizo#14
Quote:
Originally Posted by blapanda View Post
Well fck it, since no one is willing to offer any help. As well, fixed this issue on my own way. Took me more than 2 days, but fck it, yes.
Well, going to ask on maxigame, since THAT community is helping each other.

Most of you are bitching around "oqe turks r stupit yea krall kyng" etc. but they are more like a chain and helping each other. Get a slice of it!
Please tell me how did you fix it i have the same problem ..:(:(:(