[MOD] Simple Live MAP

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

Nathorus
 
Posts: 9
Joined: 18 Oct 2014, 12:46

Re: [MOD] Simple Live MAP

Post by Nathorus » 04 Mar 2016, 11:34

Pls help me,

i dont understand , in need the PHP script pls :oops:

Thx for Help
Image
Image


Nathorus
 
Posts: 9
Joined: 18 Oct 2014, 12:46

Re: [MOD] Simple Live MAP

Post by Nathorus » 05 Mar 2016, 20:14

Okay sry Guys,

my map is Online, thx for this nice Simple Map :D
Image
Image


Kortal
 
Posts: 8
Joined: 02 Jan 2016, 23:33

Re: [MOD] Simple Live MAP

Post by Kortal » 09 May 2016, 00:34

@MacDante, would it be possible to add the player ip in the tables lifdscp_online_character and lifdscp_online_character ?


MacDante
 
Posts: 95
Joined: 12 May 2015, 10:08

Re: [MOD] Simple Live MAP

Post by MacDante » 10 May 2016, 07:17

Probably is this possibility, but not from my side. I don't use this table on my server and don't change it.


Halvdal
 
Posts: 107
Joined: 20 Jan 2016, 13:36

Re: [MOD] Simple Live MAP

Post by Halvdal » 10 May 2016, 16:45

If you want to show online players you should use this:
http://lifeisfeudal.com/forum/lif-baron-script-get-all-currently-active-players-t3364/

Here you find the script: http://pastebin.com/h2t5yev4
(Save it as baron.cs)

You have to create a new table named "baron_players" and in this table you create a column named "CharacterID". Then you can upload the baron.cs into your LiF server main directory, open your main.cs and add exec("baron.cs"); at the end of the file.

Then you have to edit the index.php and edit the line $sql = "SELECT * FROM `lifdscp_online_character`"; into $sql = "SELECT * FROM `baron_players`";.


Thats it!


Kortal
 
Posts: 8
Joined: 02 Jan 2016, 23:33

Re: [MOD] Simple Live MAP

Post by Kortal » 10 May 2016, 20:21

MacDante wrote:Probably is this possibility, but not from my side. I don't use this table on my server and don't change it.

yeah sorry, was just an example, any table would be fine lol
a new table, or the "account" table for example

Halvdal, thanks, but this doesnt match ip to a player, or ... did i miss something ?


K475u
 
Posts: 10
Joined: 14 Jun 2016, 19:02

Re: [MOD] Simple Live MAP

Post by K475u » 26 Jun 2016, 01:28

Kortal wrote:Thanks MacDante for your great work.
I have updated a bit the code and added some more other things.

+ updated to mysqli
+ migrated config to a separated file
+ grid on mouse over the map
+ guild members list on mouse over the guild claim
+ optional online count: need to have lifdscp (lif-dedicated-server-control-panel-lifds-cp-t15168/)
+ optional online player list: need to have lifdscp (lif-dedicated-server-control-panel-lifds-cp-t15168/)
+ optional weather display (today and tomorrow): need to copy the cm_weather1.xml file into map folder

css by Jakommo.

Image

download: https://mega.nz/#!k84kwbJI!yet-vK3qqPAh ... RZjPb-XXSY



Hey There,

Thanks for the map! Is it possible to Print the Ingame Time and Date on it instead of the RL Time and Date ?


Seregaman
 
Posts: 7
Joined: 17 Jun 2016, 19:32

Re: [MOD] Simple Live MAP

Post by Seregaman » 21 Nov 2016, 12:52

Thank you for Live MAP.
Everything works fine.
But the weather is not displayed.
(cm_weather1.xml file is in the folder MAP)

Code: Select all
if (file_exists('./cm_weather1.xml')) {
   $data = file_get_contents('./cm_weather1.xml', true);
   $pos = strpos($data, "=" . $daynumber .">");
   $weather=substr($data, $pos+2+strlen($daynumber), 15);
   $weather=substr($weather, 0, strpos($weather,"<"));

   $daynumber2 = $daynumber + 1;
   if ($daynumber == 364) { $daynumber2 = 1;}
   $pos = strpos($data, "=" . $daynumber2 .">");
   $weather2=substr($data, $pos+2+strlen($daynumber2), 15);
   $weather2=substr($weather2, 0, strpos($weather2,"<"));

   $infos = $infos . "Погода: " . $weather ." (завтра:". $weather2 . ")<br />";


Help please, what could be wrong.

User avatar
Dragodor
Zealous Believer
 
Posts: 327
Joined: 20 May 2015, 13:08

Re: [MOD] Simple Live MAP

Post by Dragodor » 15 Jan 2017, 14:29

Hello,
it works fine! :Yahoo!:

But 2 questions:
  1. I can't find the "cm_weather1.xml". Where do I have to download it?
  2. How can I deactivate the player names in the claim-tooltips?
Best Wishes,
Dragodor

User avatar
SnowSharky
 
Posts: 29
Joined: 01 Jun 2016, 02:50

Re: [MOD] Simple Live MAP

Post by SnowSharky » 04 May 2017, 10:22

Dragodor wrote:Hello,
it works fine! :Yahoo!:

But 2 questions:
  1. I can't find the "cm_weather1.xml". Where do I have to download it?
  2. How can I deactivate the player names in the claim-tooltips?
Best Wishes,
Dragodor

1. Its found in
Steam\steamapps\common\Life is Feudal Your Own Dedicated Server\data\weather
Tried messing around with the weather, assuming the format must have been changed as it doesnt seem to work anymore.

2. Go into the index.php and remove

{$guildmembers = $guildmembers . $db_field['Name'] . " " . $db_field['LastName'] . ", "; }
Should remove the names from being displayed, tho the popup will still show up

Return to Game mods