Jump to content

Allocs WebAndMapRendering dwarfmaster flavour


dwarfmaster1974

Recommended Posts

Hi all,

 

this is my first mod, which came to live after I presented my own map ( http://der-heimat-hafen.de ) in between a '7 Days to die' discussion on discord.

 

So please be nice to me, I am just a newbie on that.

 

You can Download the Mod at: github.com - Allocs WebAndMapRendering dwarfmaster flavour 

 

Please have a look at the README.md for an overview of the features and configuration.

 

If there are any questions left, do not hesitate to contact me 😇

 

Have fun.

 

Here a tiny a preview of my Map
hh-web-map.thumb.png.c2c90e4a6e40161db85e44fcb0a555fa.png

Link to comment
Share on other sites

Hi @HillBilly Bones,

 

Quote

but how to translate all the text to English?

there are two things to do ... first you have to look in the file 'data/config.json' and there all the fields named 'name' and nearly at the end there is a little translation object.

 

Example:

"defaultlinks": {
  "map": {
    "name": "Karte",
    "permission": "web.map"
},

becomes:

"defaultlinks": {
  "map": {
    "name": "Map",
    "permission": "web.map"
},

 

Second, watch the file: 'data/info.html' ... it is just HTML and you could fill it with simple HTML. If you are familiar with it, you can use Bootstrap formatting and the icons from Font-Awseome here. The info.html is the information shown, when the user is clicking on the 'Informationen' link in the menu.

 

Example-Content:

<h1>Rules</h1>
<ul>
  <li>First rule of the Fight Club is. Never talk about the Fight Club</li>
</ul>

<h1>Teleports</h1>
<ul>
  <li>/hop - to somewhere</li>
  <li>/jump - to somewhere else</li>
  <li>/home - guess ;)</li>
</ul>

 

For the use of Boostrap and Font-Awesome look at the example 'info.html' I provided with the mod 😉

 

Please also watch the README.md file under https://github.com/OmitLeChuck/7D2D_Allocs_WebAndMapRendering_dwarfmaster_flavour#readme there I hopefully described everything.

Let me know if I have forgotten something.

 

Have fun 😇

Link to comment
Share on other sites

i want thank you for this . i took my time step by step. and i loved it. i could not figure out how to do that map part. very simple and easy too work. thank you for this. But i dont know how to do the zones you have . don't know how to place them I set up traders good .. but when I do zone area it like buges out dont show on map.. do i need to do some type a code. kinda lost in that area. your welcome to message me . and there was none for pvp and pve ones. i know there was color code for it. 

Link to comment
Share on other sites

Hi @Kazina,

 

Reset-Zones are normally only then present if you are using any kind of Server-Manager like CSMM/CPM or Server-Tools etc. 

The logic behind that is just to delete the Region-Files where all the SaveGameData for the environment is saved. These files are located in your SaveGameFolder/MapName/GameName/Region and the format is i.e. r.0.-1.7rg.

If you don't use a Server-Manager or something else, you do not need to configure that part, and you can leave the zones file empty.

 

Concering the traders, you could find the positions of the traders in the prefab.xml of your used map in your World-Directory.

Just open that file with notepad or similiar > search for trader, and you will find lines like:

<decoration type="model" name="trader_rekt" position="1420,38,3269" rotation="2" />

so you could add this information to your taders.json like this:

{
	"name": "Rekt",
	"x": "1420",
	"z": "3269"
}

 

Hopefully that helps ;)

Link to comment
Share on other sites

  • 2 weeks later...

Hi @Shebuk,

 

I guess that it could depend on the configured rights you have.

There are two rights to set up in the webpermissions.xml for that:

<permission module="webapi.viewallclaims" permission_level="2000"/>
<permission module="webapi.getlandclaims" permission_level="2000"/>

 

You can check the correct permission if you just call the api like this:

http://[IP-ADRESS:PORT]/api/getlandclaims.

This should normally output something like that in your browser:
 

{
    claimsize: 50,
    claimowners: [{
            steamid: "EOS_0056df54654kjdhgkjdfhgk5465dsdg2",
            claimactive: true,
            playername: null,
            claims: [{
                    x: 1747,
                    y: 28,
                    z: 1698
                }, {
                    x: 1747,
                    y: 13,
                    z: 1342
                }
            ]
        }
    ]
}

 

Hopefully that helps 😇

Link to comment
Share on other sites

18 hours ago, dwarfmaster1974 said:

Hi @Shebuk,

 

I guess that it could depend on the configured rights you have.

There are two rights to set up in the webpermissions.xml for that:

<permission module="webapi.viewallclaims" permission_level="2000"/>
<permission module="webapi.getlandclaims" permission_level="2000"/>

 

You can check the correct permission if you just call the api like this:

http://[IP-ADRESS:PORT]/api/getlandclaims.

This should normally output something like that in your browser:
 

{
    claimsize: 50,
    claimowners: [{
            steamid: "EOS_0056df54654kjdhgkjdfhgk5465dsdg2",
            claimactive: true,
            playername: null,
            claims: [{
                    x: 1747,
                    y: 28,
                    z: 1698
                }, {
                    x: 1747,
                    y: 13,
                    z: 1342
                }
            ]
        }
    ]
}

 

Hopefully that helps 😇


I already setup the webpermissions.xml file, and when I did the http://[IP-ADRESS:PORT]/api/getlandclaims it prints the location of all the landclaims but on the web map when I click the checkbox it doesnt' work.
 

The other thing that it's not wokring for me it's the collapse buttons, they don't work either =/ everything else it's working good.


Sorry for bother you with this, and you did a cool web map thats why I want it to work for me xD

Link to comment
Share on other sites

Hi @Shebuk,

 

no problem. I think we can find the issue you are facing.

 

Some questions to investigate:

* Do you have any additional JavaScript added to your map?

* which browser and version are you using?

* could you send me a direct message with your config.json file? So that i can reproduce in my dev environment?

* are there any error messages when you open the dev console? (in Chrome 'F12' and tab 'console')?

 

We are around the world of JavaScript and that is sometimes a tiny pain in the ... 😇

Link to comment
Share on other sites

5 hours ago, dwarfmaster1974 said:

Hi @Shebuk,

 

no problem. I think we can find the issue you are facing.

 

Some questions to investigate:

* Do you have any additional JavaScript added to your map?

* which browser and version are you using?

* could you send me a direct message with your config.json file? So that i can reproduce in my dev environment?

* are there any error messages when you open the dev console? (in Chrome 'F12' and tab 'console')?

 

We are around the world of JavaScript and that is sometimes a tiny pain in the ... 😇

Thanks for your response! I'll send you a PM with the file and yes, I got errors on the console, currently using Chrome as web browser, and yours it's the only javascript file running at the moment.

Link to comment
Share on other sites

  • 3 weeks later...

Hello all,

 

I have tried a little, because I find it exciting to see what is happening on the server.

I mean, who has killed which zombies or animals and with what.

 

So the idea was to show this also on the live map.
The result is another JSON file that can be filled to display this data. (stats.json)

But I'm not sure if this could be interesting for you, because the filling and gathering of the data is of course not that easy, and you need a little technical experience.

 

Therefore, the question here, whether I should include this in the current module and if so how, because by default there is no data.

So you see what I mean, you can look at the live map of my server, where I test from time to time.

 

http://der-heimat-hafen.de

 

Just click on 'Statistik' in the left menu to get an impression of what I'm talking about. (mostly german, sorry) .... and of course it is a draft version 😇

 

I would be happy about your feedback, but of course I also take your questions.

 

Greetings

Link to comment
Share on other sites

Hi @ktrain,

 

the download represent a basic config. So every value is set to default. Even the logo and the links.

 

You can manipulate the config.json to your needs ;)

 

My Demo additionally just contents the statistics and some contents in the information area and of course live playing data like my server-map and zones ;)

 

How to set up is described in the readme.md on github.

 

Greetings

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...