Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Panic!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition
View previous topic :: View next topic  
Author Message
Naeza
Member


Joined: 05 Sep 2004
Posts: 2

PostPosted: Sun Sep 05, 2004 10:31 pm    Post subject: Panic! Reply with quote

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
View user's profile Send private message
Daaark
DeleD PRO user


Joined: 01 Sep 2004
Posts: 2696
Location: Ottawa, Canada

PostPosted: Mon Sep 06, 2004 1:06 am    Post subject: Reply with quote

Open the file in a text editor and replace all the commas with periods.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Mon Sep 06, 2004 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Naeza
Member


Joined: 05 Sep 2004
Posts: 2

PostPosted: Mon Sep 06, 2004 8:35 am    Post subject: Reply with quote

That did the trick! Thank you very much guys, you've saved my mental stability.
Back to top
View user's profile Send private message
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Mon Sep 06, 2004 9:40 am    Post subject: Reply with quote

No problem, just post some nice screenshots of your level on these forums and we'll be happy... Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Daaark
DeleD PRO user


Joined: 01 Sep 2004
Posts: 2696
Location: Ottawa, Canada

PostPosted: Tue Sep 07, 2004 3:39 am    Post subject: Reply with quote

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. Confused 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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Tue Sep 07, 2004 7:12 am    Post subject: Reply with quote

Excellent idea Vampyre. I want to optimize my loading/saving routines anyway so i'll implement your idea at the same time. Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Fri Sep 10, 2004 2:48 pm    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum