[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 » 23 Mar 2016, 10:27

Mod has been updated, redownload mod files.
FIX: If you set variable "show_coords" at config file, coords should be displayed by default when you enter GM mode.


SllowMo
 
Posts: 4
Joined: 23 Apr 2016, 01:42

Re: [MOD] BasilMod::Teleport

Post by SllowMo » 24 Apr 2016, 02:38

Sorry, am still pretty new to this. I am seeming to have issues with the mod, and the rest zone one. It says to end these commands into the server console, but when i do so it says Unable to find function for BasilMod::teleport_register. Am i entering this incorrectly?

BasilMod::teleport_register("\n\nTeleporting to The Carrock", 3, "1732 350 1008", 1, 117316608); //Register new teleport what im using.

I use control ~ and type it in. it does nothing.

Am i to run this as a query or?....

Thank you for your time, I love all the mods, they are awesome!


Alakar
Beta Tester
 
Posts: 202
Joined: 23 Jan 2015, 07:39

Re: [MOD] BasilMod::Teleport

Post by Alakar » 24 Apr 2016, 03:48

SllowMo wrote:Sorry, am still pretty new to this. I am seeming to have issues with the mod, and the rest zone one. It says to end these commands into the server console, but when i do so it says Unable to find function for BasilMod::teleport_register. Am i entering this incorrectly?

BasilMod::teleport_register("\n\nTeleporting to The Carrock", 3, "1732 350 1008", 1, 117316608); //Register new teleport what im using.

I use control ~ and type it in. it does nothing.

Am i to run this as a query or?....

Thank you for your time, I love all the mods, they are awesome!


This is serverside only, so you launch it and run it on the server only not the client.

-Alakar
http://arkhaya.com/


SllowMo
 
Posts: 4
Joined: 23 Apr 2016, 01:42

Re: [MOD] BasilMod::Teleport

Post by SllowMo » 24 Apr 2016, 19:50

Alakarsiann wrote:
SllowMo wrote:Sorry, am still pretty new to this. I am seeming to have issues with the mod, and the rest zone one. It says to end these commands into the server console, but when i do so it says Unable to find function for BasilMod::teleport_register. Am i entering this incorrectly?

BasilMod::teleport_register("\n\nTeleporting to The Carrock", 3, "1732 350 1008", 1, 117316608); //Register new teleport what im using.

I use control ~ and type it in. it does nothing.

Am i to run this as a query or?....

Thank you for your time, I love all the mods, they are awesome!




This is serverside only, so you launch it and run it on the server only not the client.

-Alakar
http://arkhaya.com/


Okay, so do i run as a query on SQL Database? Im not sure what you mean by server side. I get that I have to do it on the server, Im just not sure how to do the execute commands without restarting the server.

Sorry, just not fully understanding.
THanks for your time!

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

Re: [MOD] BasilMod::Teleport

Post by Custodian » 25 Apr 2016, 12:42

SllowMo wrote:Okay, so do i run as a query on SQL Database? Im not sure what you mean by server side. I get that I have to do it on the server, Im just not sure how to do the execute commands without restarting the server.

Sorry, just not fully understanding.
THanks for your time!

There is nothing to do with SQL database.

Serverside mod means, that mod should be installed and enabled only at the game server. Your player should not install anything.
Commands should be executed at server console:
Spoiler


If you rent your server, ask your host service provider for LiF server console access.


SllowMo
 
Posts: 4
Joined: 23 Apr 2016, 01:42

Re: [MOD] BasilMod::Teleport

Post by SllowMo » 26 Apr 2016, 04:25

Much apprecaited Custodian. Thank you guys for your help.
Really love the mods, and just learning how to work with them.

Thanks a bunch for uploading.
Cheers! :Yahoo!:


Everettham
Alpha Tester
 
Posts: 56
Joined: 22 Apr 2014, 02:16

Re: [MOD] BasilMod::Teleport

Post by Everettham » 07 May 2016, 05:36

If my host provider doesn't allow server console access is there a way to make the mod work still? Maybe I'm just doing it wrong.

This what I put maybe I did it wrong? Down below 1026.86 264.974 1017.19= Entry Point 117385293=exit point which is a geo ID of a wooden stairs


$BasilMod::teleport::show_coords = true;
$BasilMod::teleport::enable = true;

BasilMod::teleport_register("\n\nCombat Zone!", 1, "1026.86 264.974 1017.19", 1, 117385293); //Register new teleport


Gms0012
 
Posts: 166
Joined: 23 Feb 2015, 08:49

Re: [MOD] BasilMod::Teleport

Post by Gms0012 » 07 May 2016, 08:44

i think u dont need the console

you can configure everything in the config file...

in the console you can turn it on/off without a server restart...

but in the config file you can also edit everything - but then u need to restart the server

please correct me, if i am wrong...
Image

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

Re: [MOD] BasilMod::Teleport

Post by Custodian » 07 May 2016, 09:18

Everettham wrote:Maybe I'm just doing it wrong.

Make sure you are using latest mdos version, re-download it, if you are doubt.
Add teleport mod to server main.cs. Edit config.cs of the mod.
After adding those lines to you config
Code: Select all
$BasilMod::teleport::show_coords = true;
$BasilMod::teleport::enable = true;

you should see coods in the middle of the screen when you are in GM mode.

Gms0012 wrote:but in the config file you can also edit everything - but then u need to restart the server

This is correct.


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

Re: [MOD] BasilMod::Teleport

Post by Stoned_Peasant » 22 Jun 2016, 12:43

Hi Basil,

First of all thank you for your great work on those mods - very detailed and throughout approach.

I am very new to this so dont judge me harshly :D

However i have been testing teleport mod along some of your other mods and tried to make a "lift" to get to the top of castle keep obviously, however the geo id taken from the item on the roof of the keep would simply send me into one the rooms of the keep half way :D

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

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.

Return to Game mods