[MOD] BasilMod::Teleport

Place for sharing your game modifications for Life is Feudal: Your Own
User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::Teleport

Post by Custodian » 22 Jun 2016, 13:31

BasilMod::Teleport has been updated to v4.

You can now specify destination point as a set of coords "X Y Z" instead of GeoID. Player will be teleported to those coords.

Spoiler


Stoned_Peasant wrote:my question is will it be possible to implement geo altitude into BasilMod::Teleport, or maybe there is a simpler approach?

Download latest version, and specify coords of your roof.
Last edited by Custodian on 22 Jun 2016, 13:45, edited 1 time in total.


Stoned_Peasant
 
Posts: 9
Joined: 23 Jul 2015, 04:50

Re: [MOD] BasilMod::Teleport

Post by Stoned_Peasant » 22 Jun 2016, 13:43

Wow, thank you! :Yahoo!:


Madmax0207
True Believer
 
Posts: 13
Joined: 01 Apr 2015, 11:46

Re: [MOD] BasilMod::Teleport

Post by Madmax0207 » 02 Nov 2016, 16:02

Hello

After restart all my teleport are not available. Must i set the points after restart again? or whats happend?

Mfg Mario

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::Teleport

Post by Custodian » 02 Nov 2016, 17:49

Madmax0207 wrote:After restart all my teleport are not available. Must i set the points after restart again? or whats happend?

Point configuration is loaded from config file.
Make sure that mod is enabled on startup, and you added all your points to your configuration file.


Madmax0207
True Believer
 
Posts: 13
Joined: 01 Apr 2015, 11:46

Re: [MOD] BasilMod::Teleport

Post by Madmax0207 » 02 Nov 2016, 18:33

Custodian wrote:
Madmax0207 wrote:After restart all my teleport are not available. Must i set the points after restart again? or whats happend?

Point configuration is loaded from config file.
Make sure that mod is enabled on startup, and you added all your points to your configuration file.



Ok

Main.cs ist added.
config file mh. that means i must put the teleport_register also in the config file.
and after restart the config file load the register again.
right?

Mfg Mario

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::Teleport

Post by Custodian » 02 Nov 2016, 18:41

Madmax0207 wrote:Main.cs ist added.
config file mh.

I don't understand you.

All teleport_register commands should be added only to basilmod/teleport/config.cs file.

Example(default) config.cs file contain examples(which are commented out) for teleports.


Madmax0207
True Believer
 
Posts: 13
Joined: 01 Apr 2015, 11:46

Re: [MOD] BasilMod::Teleport

Post by Madmax0207 » 02 Nov 2016, 19:03

Custodian wrote:
Madmax0207 wrote:Main.cs ist added.
config file mh.

I don't understand you.

All teleport_register commands should be added only to basilmod/teleport/config.cs file.

Example(default) config.cs file contain examples(which are commented out) for teleports.



No problem :crazy: iam dont understand my self from time to time :Yahoo!: :crazy:

all fine. i read all again :good: and now its working. :good:
thx.

Mfg Mario

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::Teleport

Post by Custodian » 05 Feb 2017, 19:09

BasilMod::Teleport has been updated to v5 and now compatible with LiF 64bit.


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 10 Sep 2017, 20:56

I cannot get this to work.

I created the BasilMod folder and the teleport folder inside it.

I put those 2 tiles into the teleport folder

I restarted the server

When I run the command exec("BasilMod/teleport/teleport.cs"); I get the message that there is a missing file "BasilMod/teleport/teleport.cs"

Well of course the file is missing, the file in the teleport folder is called teleport.cs.dso

When i try to run the command BasilMod::teleport_showCoords(); I get the message that the function does not exist.

I forgot to mention that I did also make the edit in the main.cs file. This is what it look like.

Spoiler
Last edited by Koreno.gamer on 10 Sep 2017, 21:03, edited 1 time in total.

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::Teleport

Post by Custodian » 10 Sep 2017, 21:02

Koreno.gamer wrote:When I run the command exec("BasilMod/teleport/teleport.cs"); I get the message that there is a missing file "BasilMod/teleport/teleport.cs"


You should add this command to your server main.cs file, or run it command at server console. Here is an example how it looks like:
server console:
Spoiler


Koreno.gamer wrote:Well of course the file is missing, the file in the teleport folder is called teleport.cs.dso

File is named "teleport.cs.dso", and exec command contains "teleport.cs" without ".dso" suffix, this is correct.

Koreno.gamer wrote:When i try to run the command BasilMod::teleport_showCoords(); I get the message that the function does not exist.

Mod is not loaded, so function does not exist.


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 10 Sep 2017, 21:05

I am soooo consuded... I edited my post to include my mais.cs file

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::Teleport

Post by Custodian » 10 Sep 2017, 21:09

Koreno.gamer wrote:I am soooo consuded... I edited my post to include my mais.cs file

Verify, that you uploaded required files to your server, and not client, i.e. full path should be like
Code: Select all
"Life is Feudal Your Own Dedicated Server\BasilMod\teleport\teleport.cs.dso"


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 10 Sep 2017, 21:13

Custodian wrote:
Koreno.gamer wrote:I am soooo consuded... I edited my post to include my mais.cs file

Verify, that you uploaded required files to your server, and not client, i.e. full path should be like
Code: Select all
"Life is Feudal Your Own Dedicated Server\BasilMod\teleport\teleport.cs.dso"



I use Bluefang. I opened the file manager, added the BasilMod Folder. Added teleport folder inside BasilMod folder. and put the 2 tiles inside the teleport folder


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 10 Sep 2017, 21:18

Here is the place I put the folders Image

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::Teleport

Post by Custodian » 11 Sep 2017, 09:34

Koreno.gamer wrote:I use Bluefang. I opened the file manager, added the BasilMod Folder. Added teleport folder inside BasilMod folder. and put the 2 tiles inside the teleport folder

Your setup seems to be valid.
Make sure you are typing commands in server console, and check your server log file, to verify that mod is loaded from your main.cs file (or share your log with me).


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 11 Sep 2017, 23:14

I found these lines in the latest log file from the logs folders

Spoiler

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::Teleport

Post by Custodian » 11 Sep 2017, 23:19

Koreno.gamer wrote:I found these lines in the latest log file from the logs folders

BasilMod/teleport/config.cs Line: 51 - syntax error

You have syntax errors in your mod config.cs file, so it is not loaded.


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 11 Sep 2017, 23:35

The only change I made was I copied the section in your example to the bottom.

Here is my config file.

Spoiler


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 11 Sep 2017, 23:40

OK... I removed the line...

Teleport registration;

restarting now to see what happens


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 11 Sep 2017, 23:43

After removing the line.... This is the only occurance of the word teleport in the log file...

ECHO 2017-09-11 18:39:31.985 {} <> [0] BasilMod::teleport v5 loaded

Hope it works now.


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 11 Sep 2017, 23:47

Also... When you say "server console", do you mean the game console on my bluefang dashboard?

When I use the command BasilMod::teleport_showCoords(); there I get nothing. no messages in game, no messages anywhere. nothing happens


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 12 Sep 2017, 01:00

Well,

The log says the mod is loaded. But I can not get anything to work. Cant figure out how to get coords first of all.

I am in GM mode and when I use the command BasilMod::teleport_showCoords() either in the console at bluefang I get nothing. No messages no errors, nothing. no idea if anything is happening.

When I use it ingame in the console from hitting ctrl ~ I get a message unable to find function BasilMod::teleport_showCoords()

My config options are set as follows....
$BasilMod::teleport::show_coords = True; //Show coords hint message for GM characters
$BasilMod::teleport::enable = True; //Enable on server startup

Since I cant figure out how to use any commands I used the following like to make a teleport and then restarted the server.
BasilMod::teleport_register("\n\nTeleporting back to chest!", 3, 116114941, 1, 116657659); //Register new teleport

It didnt work.

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::Teleport

Post by Custodian » 12 Sep 2017, 08:56

Koreno.gamer wrote:I am in GM mode and when I use the command BasilMod::teleport_showCoords() either in the console at bluefang I get nothing. No messages no errors, nothing. no idea if anything is happening.

Command is "BasilMod::teleport_showCoords();" (omit quotes).
I have no idea how bluefang web-console works, or does it allow you to execute any server commands. Ask your hosting support for the help.

Koreno.gamer wrote:When I use it ingame in the console from hitting ctrl ~ I get a message unable to find function BasilMod::teleport_showCoords()

This is not server console, this is client console.

Koreno.gamer wrote:It didnt work.

This happed because you used geoid, while you need to use in-game coords.


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 12 Sep 2017, 22:54

OK, well until I can figure out how to get the coords this mod is useless. Maybe I can find another mod that gives me coords on demand or constant on minimap or something.


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 12 Sep 2017, 22:57

Actually..

I have this in my config...

$BasilMod::teleport::show_coords = True; //Show coords hint message for GM characters

Isnt that supposed to make it so whenever I go into GM mode it just gives me my Coords?


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 12 Sep 2017, 23:16

I found this post...
https://www.reddit.com/r/LifeIsFeudal/comments/2snunv/how_to_translate_geodataid_to_xy/

I ran this query...
CALL f_fromGeoID(116268220);

and got this result...
TerID: 443
X: 188
Y: 270

Is there a way to get the coords from that?


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 12 Sep 2017, 23:23

OK, I think I figured out that the map is 1536 by 1536.

Where is 0, 0? Top left corner? Bottom left corner?

Edit: Since TerID 443 is the bottom middle quadrant, and each quadrant is 512x512 tiles, I did a little math and made my coords 700, 270, 0.

Restarted the server to update the teleports and still nothing.

Both options in the config are set to True.


Koreno.gamer
 
Posts: 15
Joined: 10 Sep 2017, 20:49

Re: [MOD] BasilMod::Teleport

Post by Koreno.gamer » 12 Sep 2017, 23:48

A thought... Do I need any of your other mods to make this one work?

User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::Teleport

Post by Custodian » 02 Nov 2017, 22:08

Koreno.gamer wrote:A thought... Do I need any of your other mods to make this one work?

No, you dont.
You can use build-in function to enable current coords display for GMs.


Kyle.thompson446
 
Posts: 3
Joined: 07 Sep 2018, 05:01

Re: [MOD] BasilMod::Teleport

Post by Kyle.thompson446 » 07 Sep 2018, 06:32

BasilMod::teleport_register("Teleporting to City!", 3, "-473 -2405 1057", 2, 116895660);

IS THIS THE CORRECT LINE?? IVE DONE EVERYTHING I CAN THINK OF AND CANT GET IT TO WORK. I GET THE MISSING FILES READ TO.. I HAVE NO IDEA WHAT IM DOING WRONG IVE FOLLOWED THE INSTRUCTIONS

Return to Game mods