[MOD] BasilMod::Teleport

Place for sharing your game modifications for Life is Feudal: Your Own

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


Urias.bephet
 
Posts: 1
Joined: 09 Jan 2019, 11:35

Re: [MOD] BasilMod::Teleport

Post by Urias.bephet » 09 Jan 2019, 11:42

Hi,
When i use coords as a target, they are not recognize by the mod, however it work with the geoid. Is something has changed between the versions, cause it was supposed to work with coords with V3 and 4.
My problem is that the geoid teleport underwater (using a cog as a destination).

User avatar
TheSavior
 
Posts: 6
Joined: 15 Apr 2017, 19:14

Re: [MOD] BasilMod::Teleport

Post by TheSavior » 20 Apr 2020, 17:15

Hi everybody!
I saw that a lot of people can be a bit confused about editing the config file (i was too).
So here is an example of the one i use on my server:
Image
https://i.imgur.com/wr2sO0u.png

The tricky part was to delete:

/*
//example teleports
BasilMod::teleport_register("\n\nTeleporting back to chest!", 3, "1049 74 0", 1, 117318659); //Register new teleport
BasilMod::teleport_register("\n\nTeleporting to GM Isle!", 3, "1049 65 0", 1, 117302941); //Register new teleport
BasilMod::teleport_register("\n\nTeleporting to MainLand!", 3, "1650 -41 0", 1, 117318659); //Register new teleport
*/

and replace it by your own coordinates

just follow my config file and you'll be good to go!
:) :) :) :)

ps: exec("BasilMod/teleport/teleport.cs"); doesn't work on my server console so if it's your case too you have to restart your server.

Return to Game mods

cron