Impossible to add world edges

19 replies [Last post]
Astroboy
User offline. Last seen 15 weeks 2 days ago. Offline
Joined: 2012-11-04
Posts: 6

Hey guys, I got a problem to use worlds edges. When I select options other than the default one (normal, bounce or connected to the sea), nothing happens and I have no edge on my map.

All other game options work very well, so I don't understand why this one don't...

And I can play normally with edges when another owner is playing with this setting.

I'm on a Macbook Pro 2018 with macOS Catalina.

Any idea to solve it ?

Thanks !

Wuzzy
Wuzzy's picture
User offline. Last seen 11 hours 10 min ago. Offline
Joined: 2012-06-20
Posts: 1190

Hmm, the world edge works fine for me in Hedgewars 1.0.0.

Make sure that you have the correct game scheme selected before playing.

If you did that, and it still happens, than I have no idea what is going on here. In this case, plase give me the following information:

  • Hedgewars version
  • The EXACT list of steps you did (from start of Hedgewars until the bug appears)
  • Whether you have any style activated (→Styles)

Hi, I am a Hedgewars developer. Smile I accept personal donations in bitcoin. Heart 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

Astroboy
User offline. Last seen 15 weeks 2 days ago. Offline
Joined: 2012-11-04
Posts: 6

Hmm yes the scheme is well selected before playing... :/

I may have a lead that could help you understand :
- I edit my scheme, create a new one and select another world edge option than "None (default)"
- In the drop-down list at the bottom of the page, I select another scheme and then go back to the previously created one.
- The world edge option previously selected has disappeared, replaced by "None (default)". Looks like the option wasn't properly vetted.
- The others basic settings have been well saved, world edge is the only one who don't.
- However, when I select a world edge option (for example "Bounce"), go back to the previous page by clicking on the door button and then click on the pen "Edit schemes", "Bounce" is still selected. But when I launch the game, no edge are applied on the map.

Thanks for your help Wink Smiley

Wuzzy
Wuzzy's picture
User offline. Last seen 11 hours 10 min ago. Offline
Joined: 2012-06-20
Posts: 1190

Hmm, sorry. I can not reproduce this bug. Everything works correctly for me. Sad Smiley

Did you try creating a brand new scheme?
Also, which version do you use?

Hi, I am a Hedgewars developer. Smile I accept personal donations in bitcoin. Heart 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

Astroboy
User offline. Last seen 15 weeks 2 days ago. Offline
Joined: 2012-11-04
Posts: 6

Oh yes I tried Sad Smiley Version 1.0.0

Is there a "script parameter" I can add which would have the same effect ?

nemo
nemo's picture
User offline. Last seen 7 hours 23 min ago. Offline
Joined: 2009-01-28
Posts: 1807

Did you hit save after creating a new scheme?

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Astroboy
User offline. Last seen 15 weeks 2 days ago. Offline
Joined: 2012-11-04
Posts: 6

Hmm save ? Isn't that automatic? I didn't see any save button

Astroboy
User offline. Last seen 15 weeks 2 days ago. Offline
Joined: 2012-11-04
Posts: 6

When I use the tab key to move from one field to another, it goes directly from "% Retreat time" to "Script parameter" as if "World Edge" didn't exist. Maybe my computer doesn't like drop-down lists... All the text fields are normally working

nemo
nemo's picture
User offline. Last seen 7 hours 23 min ago. Offline
Joined: 2009-01-28
Posts: 1807

You're right, there's no save button. Sorry. Bad memory. I haven't edited my schemes in a long while. I guess the question is when does the save happen, on navigating back or not. Lemme check something on that front...

Ok, definitely saves it, no matter what I do (switch to another scheme, hit back, create new...)

Also, tabbing to the entry and hitting down/up arrow scrolls through the options fine, although our styling to indicate that kinda sucks (we need nicer focus indicator).

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

easy
User offline. Last seen 4 weeks 5 days ago. Offline
Joined: 2011-09-20
Posts: 9

I have the same issue as Astroboy. I can't add a world edge in local or online games as the room owner.

version 1.0.0 on Mac but on El Capitan still.

If I join others' games online with world edge I have no problems running it. I can't create it, like Asroboy said, its like the setting doesn't take.

I have seen it reset back to None after attempting an online game too.

nemo
nemo's picture
User offline. Last seen 7 hours 23 min ago. Offline
Joined: 2009-01-28
Posts: 1807

hm. I wonder if we have a localisation bug or something. Easy, are you using a translated frontend?

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

easy
User offline. Last seen 4 weeks 5 days ago. Offline
Joined: 2011-09-20
Posts: 9

No translated frontend.

This was a fresh install about a month ago.

nemo
nemo's picture
User offline. Last seen 7 hours 23 min ago. Offline
Joined: 2009-01-28
Posts: 1807

alfadur found this:
https://stackoverflow.com/questions/38547548/why-doesnt-editing-work-with-qcombobox-qdatawidgetmapper-and-qsqlrelationalta#comment70044544_38547548

Might be a Qt+OSX bug. There's a workaround line of code there to try out

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

easy
User offline. Last seen 4 weeks 5 days ago. Offline
Joined: 2011-09-20
Posts: 9

is there a script key value pair i can try to see if it works that way?

nemo
nemo's picture
User offline. Last seen 7 hours 23 min ago. Offline
Joined: 2009-01-28
Posts: 1807

Try adding:
worldedge=1

To one of your schemes under Schemes/Game

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

easy
User offline. Last seen 4 weeks 5 days ago. Offline
Joined: 2011-09-20
Posts: 9

no luck with that route

easy
User offline. Last seen 4 weeks 5 days ago. Offline
Joined: 2011-09-20
Posts: 9

The more I play with it, it does seem like a dropdown control issue. On the scheme edit screen, I make changes to many quantity values, timer values and change the world edge to wrap.

When I click Copy, All values stay the same as set but the only one that reverts back to Default is world edge.

nemo
nemo's picture
User offline. Last seen 7 hours 23 min ago. Offline
Joined: 2009-01-28
Posts: 1807

with regards to the "worldedge=1" failing.
Be sure to do it this way:
1) EXIT Hedgewars
2) open the scheme you want to change and add the value
4) Restart Hedgewars
3) Go to a room and select that scheme

Do NOT go to the scheme edit screen or if there's a selection issue with the dropdown it might wipe it again.

If you were doing all of this, I don't see why it wouldn't work :/

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

easy
User offline. Last seen 4 weeks 5 days ago. Offline
Joined: 2011-09-20
Posts: 9

Yes that did work. sorry I was confused of where you were asking me to update it. Makes sense now.

before it was
worldedge=0
scriptparam=worldedge=1

from my in-game edit and it wouldnt work.

updated it to remove scriptparam and worldedge=1 did work. Thanks.

Wuzzy
Wuzzy's picture
User offline. Last seen 11 hours 10 min ago. Offline
Joined: 2012-06-20
Posts: 1190

It seems like alfadur has recently found a way to fix this bug. Hopefully it will work in the next version of Hedgewars. But I don't know when the next release will come.

Hi, I am a Hedgewars developer. Smile I accept personal donations in bitcoin. Heart 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

Copyright © 2004-2017 Hedgewars Project. All rights reserved. [ contact ]