How to create teleport item?

Added by up2dub over 4 years ago

Tried to make teleport scroll or some item with teleporting properties. Now I`m stuck at this: has create an item, set the properties to teleport to some spawn zone and other params, but when i trying to receive that item the entities_game_service.log says: "Can`t create an item with invalid sheet" and falling.. So, how to set the valid sheet in this item?


Replies (10)

RE: How to create teleport item? - Added by sfb over 4 years ago

up2dub,

I'm working on figuring all of this out for you. I spent a few hours last night dredging through the code. I almost have building teleports figured out and I have NPC teleports figured out (I think.) Working on the final details. Give me another day or so and I'll have a better explanation. I had to dig through a lot of PACS and GPMS code.

In the mean time can you give me the specific scenario you are trying to lay out?

Thanks,
sfb
/s

RE: How to create teleport item? - Added by up2dub over 4 years ago

I want to make a teleport ticket item (like Karavan/Kami teleporter pact) that can teleport my char to binded spawn zones. I have maded an sitem object and set the teleport properties in Georges editor and added a mission to npc with pre-action, so, i can receive this item. But, as i saz, EGS fails and restarts with warning). Here is the source of my sitem object(ictpticket.sitem):


<FORM Revision="$Revision$" State="modified">
<STRUCT>
<STRUCT Name="basics">
<ATOM Name="name" Value="teleporter"/>
<STRUCT Name="EquipmentInfo">
<ARRAY Name="EquipmentSlots">
<ATOM Value="Ammo"/>
</ARRAY>
</STRUCT>
<ATOM Name="RequiredSkill" Value="none"/>
</STRUCT>
<STRUCT Name="teleport">
<ATOM Name="SpawnZone" Value="szone"/>
<ATOM Name="Automatic" Value="true"/>
<ATOM Name="Type" Value="NONE"/>
<ATOM Name="Tp Price" Value="0"/>
</STRUCT>
</STRUCT>
<STRUCT/>
<STRUCT/>
<STRUCT/>
<STRUCT/>
</FORM>

RE: How to create teleport item? - Added by sfb over 4 years ago

up2dub,

Have you defined the teleport_spawn_zone in World Editor? You'll need to open up your file, like region_newbieland.primitive, and add a teleport_spawn_zone in the newbieland continent (this is why I suggest the region primitive.) It may be complaining that szone doesn't exist. Can you provide the EGS log with the error +/- 5 lines or so?

Thanks!
sfb
/s

RE: How to create teleport item? - Added by up2dub over 4 years ago

sfb,
this zone already exists because i have teleported to it by NPC missions. The EGS log:

2010/11/02 16:00:04 WRN 3077498576 127.0.1.1/EGS-134 utils.h 796 checkedCast : checkedCast : Value 600.000000 exceed the positive capacity of a clamping at max value
2010/11/02 16:00:04 WRN 3077498576 127.0.1.1/EGS-134 utils.h 796 checkedCast : checkedCast : Value 600.000000 exceed the positive capacity of a clamping at max value
2010/11/02 16:00:04 WRN 3077498576 127.0.1.1/EGS-134 utils.h 796 checkedCast : checkedCast : Value 600.000000 exceed the positive capacity of a clamping at max value
2010/11/02 16:00:04 WRN 3077498576 127.0.1.1/EGS-134 utils.h 796 checkedCast : checkedCast : Value 600.000000 exceed the positive capacity of a clamping at max value
2010/11/02 16:00:04 WRN 3077498576 127.0.1.1/EGS-134 utils.h 796 checkedCast : checkedCast : Value 600.000000 exceed the positive capacity of a clamping at max value
2010/11/02 16:00:04 INF 3077498576 127.0.1.1/EGS-134 entity_callbacks.cpp 668 finalizeClientReady : Updating IS_NEWBIE flag for character: (0x00000000c0:00:00:85)
2010/11/02 16:00:29 WRN 3077498576 127.0.1.1/EGS-134 game_item_manager.cpp 240 createItem : <CGameItemManager::createItem> Can't create an item with invalid sheet 'ictpticket.sitem'

And i have already updated sheet_id.bin on my server.

RE: How to create teleport item? - Added by sfb over 4 years ago

up2dub,

In the ictpticket.sitem sheet you need to set a family for this item for sure. There are some other things I'm put defaults in that don't hurt. Check out the XML below and see where I've put in comments.

 1<FORM Revision="$Revision$" State="modified">
 2  <STRUCT>
 3    <STRUCT Name="basics">
 4      <ATOM Name="name" Value="teleporter"/>
 5
 6      <!-- Add this in here -->
 7      <ATOM Name="family" Value="teleport"/>
 8
 9      <!-- I think that EGS might default these in but it doesn't hurt -->
10      <ATOM Name="stackable" Value="999" />
11      <ATOM Name="Drop or Sell" Value="false" />
12      <ATOM Name="Bulk" Value="0.2" />
13
14      <STRUCT Name="EquipmentInfo">
15        <ARRAY Name="EquipmentSlots">
16          <ATOM Value="Ammo"/>
17        </ARRAY>
18      </STRUCT>
19      <ATOM Name="RequiredSkill" Value="none"/>
20    </STRUCT>
21    <STRUCT Name="teleport">
22      <ATOM Name="SpawnZone" Value="szone"/>
23      <ATOM Name="Automatic" Value="true"/>
24      <ATOM Name="Type" Value="NONE"/>
25      <ATOM Name="Tp Price" Value="0"/>
26      <!-- There are other ATOMs here: X, Y, Ecosystem, the Ecosystem for newbieland is jungle. I think you need these. -->
27      <ATOM Name="Ecosystem" Value="Jungle"/>
28    </STRUCT>
29
30    <!-- The following do not hurt. -->
31    <STRUCT Name="mp">
32      <ATOM Name="Ecosystem" Value="Jungle"/>
33    </STRUCT>
34
35    <!-- I think this is necessary as well for the client side. -->
36    <STRUCT Name="3d">
37      <!-- Look in w:\database\Interfaces\v3_bricks or gamedev for BK_...png files. -->
38      <ATOM Name="icon background" Value="BK_generic_brick.png"/>
39      <!-- Look in w:\database\Interfaces\v3_items or gamedev for TP_...png files. There are two options: caravane and kami -->
40      <ATOM Name="icon" Value="TP_caravane.png" />
41    </STRUCT>
42  </STRUCT>
43  <STRUCT/>
44  <STRUCT/>
45  <STRUCT/>
46  <STRUCT/>
47</FORM>

Hope this help and I look forward to hearing more about your progress!

Thanks,
sfb
/s

RE: How to create teleport item? - Added by sfb over 4 years ago

up2dub,

Also I'm not sure if you want to use Automatic ATOM on the "teleport" struct. Your mileage may vary.

Thanks,
sfb
/s

RE: How to create teleport item? - Added by up2dub over 4 years ago

sfb,
thank you for your replies!) But, nothing is happened. It still loose the connection with EGS, and EGS restarts on server with the same warning.. (( will debug more =)

RE: How to create teleport item? - Added by up2dub over 4 years ago

Does anyone has succesfull results?

RE: How to create teleport item? - Added by sfb over 4 years ago

up2dub,

Sorry, not that I'm aware of. My attention has been distracted lately. So your EGS crashes when you try to use one of these items?

Thanks,
sfb
/s

RE: How to create teleport item? - Added by sfb over 4 years ago

up2dub,

I haven't fully tested this yet but I did put together basic instructions for non-indoors teleports on my blog - check it out and let me know if it works for you.

Thanks!
sfb
/s

(1-10/10)