Bug when setting layer movement to decimal value.

Description: It's archive, posting new is here http://wohlsoft.ru/forum/viewforum.php?f=11

Sambo M
Topic author, Count
Count
Avatar
Sambo M
Topic author, Count
Count
Age: 25
Reputation: 15
Posts: 264
Joined: 27 Jun 2014

Post #1by Sambo » 7 Jul 2014, 23:20

If you set a layer's movement to a decimal value, PGE cuts off the decimal. So, for example, if you set the layer's speed to 0.5, it cuts off the decimal and saves it at 0.0. If you set the layer's speed to 1.2, the speed is saved at 1.0.

However, when you open a level in PGE, layer movement speeds are opened properly, if they were changed with SMBX.
Image
Current Project:
Image

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #2by Wohlstand » 8 Jul 2014, 1:14

Sambo wrote:If you set a layer's movement to a decimal value, PGE cuts off the decimal. So, for example, if you set the layer's speed to 0.5, it cuts off the decimal and saves it at 0.0. If you set the layer's speed to 1.2, the speed is saved at 1.0.

However, when you open a level in PGE, layer movement speeds are opened properly, if they were changed with SMBX.
I will check data type, will change "integer" to "double" for allowing decimals, I think, this is my mistake.

EDIT: OOps :whistle: I just now found an mistake inside Write File function, I am converting the data to string value (for writing into the file) as Integer and decimals is rounding. I gonna fix it now. After fixing, you can get the fixed build/update from the "laboratory"

Added after 56 minutes 30 seconds:
Fixed :wink:

Commit:
https://github.com/Wohlhabend-Networks/PlatGEnWohl/commit/01496e56849dd7c227d7552b842a4e602ff80aee

Update you can get it from the laboratory here:
http://wohlsoft.ru/docs/_laboratory/
If everything is okay, please post back as such, and me or another moderator will close this topic

Sambo M
Topic author, Count
Count
Avatar
Sambo M
Topic author, Count
Count
Age: 25
Reputation: 15
Posts: 264
Joined: 27 Jun 2014

Post #3by Sambo » 8 Jul 2014, 22:27

It seems to be working correctly now. I like how you made it so the open files are in tabs now, instead of different windows. :) You should make the scroll bars in the level window less sensitive. When you move them it scrolls way too fast.
Image
Current Project:
Image

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #4by Wohlstand » 8 Jul 2014, 22:35

Sambo wrote:It seems to be working correctly now. I like how you made it so the open files are in tabs now, instead of different windows. :) You should make the scroll bars in the level window less sensitive. When you move them it scrolls way too fast.
The scrollbars is sensitive because them size is a whole editing space with all sections on your level (All sections placed on single space, and can be intercrossed), minimum ~100000x100000 pixels. I recommend to use the mouse wheel over scrollbars for scroll :wink: I using them always for scroll
I will look for thinks for solve this sensitive issue, but I told to you, why this sensitive too big.

Sambo M
Topic author, Count
Count
Avatar
Sambo M
Topic author, Count
Count
Age: 25
Reputation: 15
Posts: 264
Joined: 27 Jun 2014

Post #5by Sambo » 9 Jul 2014, 5:09

I thought that was why the scroll bars were so sensitive. Maybe you could make them only scroll in the section you're in, but that would probably cause a problem when resizing a section. Anyway, my original problem was fixed, so you can close this topic. :)
Image
Current Project:
Image

Kevsoft M
Angry developer
Angry developer
Avatar
Kevsoft M
Angry developer
Angry developer
Age: 24
Reputation: 93
Posts: 379
Joined: 26 Apr 2014
Location: Austria
Website

Post #6by Kevsoft » 9 Jul 2014, 9:08

This won't be so easy to do, because all items of all section are in the window. But if you get lost in the void of nothing, you can use the button "Go to Section"-Button, or use my recently made Search-Box :wink:
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.start() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.end() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬


Return to “Troubleshooting”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest