Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about config file #178

Closed
Tiplish opened this issue Nov 28, 2016 · 12 comments
Closed

Question about config file #178

Tiplish opened this issue Nov 28, 2016 · 12 comments

Comments

@Tiplish
Copy link
Contributor

Tiplish commented Nov 28, 2016

Hello,

i'm trying to put a delay between two parties for a player for all dungeons/floors.

At the end of my configfile, the syntax is :
editPermissions: []
default:
defaultValues:
timeToNextPlay: 72
timeToNextLoot: 72

or

editPermissions: []
default:
timeToNextPlay: 72
timeToNextLoot: 72

Can you help me by giving the correct syntax of this part?
Thx

@Sataniel98
Copy link
Member

This doesn't help me much. It could be a problem with indents.

@Tiplish
Copy link
Contributor Author

Tiplish commented Nov 29, 2016

I will be more precise. For exemple, this work :
http://pastebin.com/V3nKSbub
But this doesn't work :
http://pastebin.com/rXRXzNUQ

If i read correctly your documentation, in the config file, we are suppose to write the config file like this :
http://pastebin.com/g3F7PVHR

Have i make a mistake?

@Sataniel98
Copy link
Member

defaultValues / overrideValues is a section in a dungeon config, default is a section in the main config.

@Tiplish
Copy link
Contributor Author

Tiplish commented Nov 29, 2016

Yes but if i would have a same parameters for all my floors, regardless of the dungeon, i can't put it in the config file? I have to alwas change the dungeon config file per dungeon?

@Sataniel98
Copy link
Member

Just put it directly into the default section, like

default:
  timeToNextPlay: 72
  timeToNextLoot: 72

@Tiplish
Copy link
Contributor Author

Tiplish commented Nov 30, 2016

It doesn't work :(

I've exactly the same problem as #174 when i add default part.

This is my full config file which is bugged :
http://pastebin.com/UvRRsR7x

I hope you could reproduce my problem. I use dxl 0.15.1 dev build n°6.

@Sataniel98 Sataniel98 reopened this Nov 30, 2016
@Sataniel98
Copy link
Member

Oh okay, sorry, I'll have a look at it tomorrow.

@Sataniel98
Copy link
Member

It works well for me. So, you get exactly this error?
io.github.dre2n.dungeonsxl.player.DGroup.startGame(DGroup.java:663) ~[?:?] at
And there is no dungeon script or floor config that overrides the values in the case of the dungeon you enter?

@Sataniel98 Sataniel98 added the BUG label Dec 1, 2016
@Tiplish
Copy link
Contributor Author

Tiplish commented Dec 2, 2016

Hi, thanks for you answer.

I will check it but the only thing that i change is the configFile.

To be sure , my steps will be :

  • Upgrad DXL (i've seen that another version is out ;) )
  • Checking if another dungeon script or floor config overrides values
  • Find the error that you show
  • If previous steps don't work, i will paste the errors that i get.

That's it?

@Sataniel98
Copy link
Member

Does this still occur in 0.15.3-RC-01?

@Tiplish
Copy link
Contributor Author

Tiplish commented Dec 26, 2016

We are still in 1.10.2 on our server. We will go in 1.11 soon but before, we need some test :)

I come back as soon as i've tested it.

@Tiplish
Copy link
Contributor Author

Tiplish commented Apr 3, 2017

Hi,

Last week-end, i've try a config for my floors and it works o/ sorry for the delay before testing. I've not tested a dungeon config file but i think i will open a new issue if i find another problem. You could close this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants