View previous topic :: View next topic |
Author |
Message |
Naeza Member
Joined: 05 Sep 2004 Posts: 2
|
Posted: Sun Sep 05, 2004 10:31 pm Post subject: Panic! |
|
|
I'm working on a fairly large map for my game and just upon completion when i'm about to open it and do the finishing touches, the file won't load but instead gives the error: "Error loading map: '0,0000' is not a floating point value"
This has happened to me before with older versions of Deled and i'm quite screwed here if you can't help me fix this map! Otherwise this is about a month of work down the drain! |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Mon Sep 06, 2004 1:06 am Post subject: |
|
|
Open the file in a text editor and replace all the commas with periods. |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Mon Sep 06, 2004 6:37 am Post subject: |
|
|
DeleD uses periods (dots) for floating point values but it may occur that Windows itself changes that into a comma while using DeleD. When you then save your map, it will contain commas instead of periods and thus, if you try to load that map again, it will fail. I have the same problems occassionally but I don't know the exact cause.
But indeed, replacing the commas to periods in a texteditor will solve the problem. |
|
Back to top |
|
|
Naeza Member
Joined: 05 Sep 2004 Posts: 2
|
Posted: Mon Sep 06, 2004 8:35 am Post subject: |
|
|
That did the trick! Thank you very much guys, you've saved my mental stability. |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Mon Sep 06, 2004 9:40 am Post subject: |
|
|
No problem, just post some nice screenshots of your level on these forums and we'll be happy... |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Tue Sep 07, 2004 3:39 am Post subject: |
|
|
Jeroen wrote: |
DeleD uses periods (dots) for floating point values but it may occur that Windows itself changes that into a comma while using DeleD. When you then save your map, it will contain commas instead of periods and thus, if you try to load that map again, it will fail. I have the same problems occassionally but I don't know the exact cause.
But indeed, replacing the commas to periods in a texteditor will solve the problem. |
Not sure how that can manage to happen. But as a layer of security, why don't you do a second pass over the file while saving to replace any commas. And when you're loading the file, do the same thing. Then no one will have a broken file. |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Tue Sep 07, 2004 7:12 am Post subject: |
|
|
Excellent idea Vampyre. I want to optimize my loading/saving routines anyway so i'll implement your idea at the same time. |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Fri Sep 10, 2004 2:48 pm Post subject: |
|
|
I've added code to replace all commas by a dot when saving DMF/DPF files so this problem should not occur anymore. Available in the next version. |
|
Back to top |
|
|
|