1

Topic: [EDITOR] Crash when saving embedded image in 0.4.3

Hi,

I have Teeworlds 0.4.3 and developers say the editor is more stable, but it still crashes for me.

I have created a map and now I want to do the background. For creating it, I have created a group, and inside, a quad layer. The quad layer uses an embedded image. And the quad also uses a position envelope (it rotates 360º). But when I try to save it, the editor ALWAYS crashes.

And I don't know where's the problem. I hope you can help me.

Thanks.


NOTE: I know how to use the editor smile.

2 (edited by datag 2008-09-16 13:49:36)

Re: [EDITOR] Crash when saving embedded image in 0.4.3

Several bugs were fixed, this however might be another bug.
Please tell us
* what operating system you use
* exactly the steps to reproduce
* did it occur on 0.4.2 as well?
* any workarounds you may used

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

3

Re: [EDITOR] Crash when saving embedded image in 0.4.3

I will answer those questions later. Now I can't, thanks for the support.

4

Re: [EDITOR] Crash when saving embedded image in 0.4.3

datag wrote:

Several bugs were fixed, this however might be another bug.
Please tell us
* what operating system you use
* exactly the steps to reproduce
* did it occur on 0.4.2 as well?
* any workarounds you may used

1) I use Windows XP 32 bits SP3 (yes, I know. I don't need comments about this OS smile ).

2) The steps were the following:

- First of all, this is the current situation of the map. Here you can see the layers and groups. Now, the map is still stable.

http://img228.imageshack.us/img228/3722/01fu1.th.jpg

- In this second picture, you can see the images in the map. No problem.

http://img255.imageshack.us/img255/9563/02yt2.th.jpg

- Here is where I start. I add a background image and I embedd it.

http://img524.imageshack.us/img524/5659/03kk3.th.jpg

- Now, I create a group and I modify the "Para X" and "Para Y" values to 20. And I add a Quad Layer to the group.

http://img93.imageshack.us/img93/6097/04rq3.th.jpg

- I set the image I have added before to the layer.

http://img93.imageshack.us/img93/2677/05bp7.th.jpg

- I modify the size of the background quad and I add an envelope in the envelopes editor. It has 2 points: (0, 0) and (99.46, 360.775).

http://img227.imageshack.us/img227/7636/06cu3.th.jpg

- I assign the position envelope to the quad, so the background can rotate 360º.

http://img228.imageshack.us/img228/2280/07ms2.th.jpg

- Now, it's time to save the map. I call it "ctf-FaceClassic10.map" and then I click "Save". And then... SURPRISE!... Teeworlds crashes and give me a marvellous "Send error to Micros***" message (well, I have Visual Studio installed, so it isn't the window I have said, but it's the same).

3) Yes, I have tested in version 0.4.2 and it crashes too.

4) Here you can see the workaround I have used. Before this, I hadn't had any problems with saving it. big_smile .



If you need more info, I'll give it with pleasure. I can upload the map too if you need it.

Thanks for responsing.

5

Re: [EDITOR] Crash when saving embedded image in 0.4.3

Your map looks like the one of UT04 big_smile

sorry, i can't help you with your problem...

my server crashs SOMETIMES (i don't know exactly how and when) when i save a map... hmm
teeworlds works on and my map is saved but the server crahs yikes

it just says "teeworlds_srv.exe blabalballablalbalabllab [SEND MESSAGE] [CLOSE]"

ima charhgin ma lazerz!!1
SHOOP DA WHOOOOP!!!!!!11

6

Re: [EDITOR] Crash when saving embedded image in 0.4.3

Reaper: Face is a classic map. It exists since Unreal1 (not UT, U1)

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

7

Re: [EDITOR] Crash when saving embedded image in 0.4.3

Yes, it's a UT CTF-FaceClassic remake of UT2004... but I know it since UT99. big_smile

8

Re: [EDITOR] Crash when saving embedded image in 0.4.3

Try to save the map with ctf_FaceClassic10.map and not with ctf-FaceClassic10.map

I think the - is the problem

9

Re: [EDITOR] Crash when saving embedded image in 0.4.3

No, it doesn' work. I saved it with ctfFaceClassic10.map and crashed (oh, it's strange...). Anyway, I saved the previous versions with "-" and it didn't crash, so you can save your maps with "-" smile .

10

Re: [EDITOR] Crash when saving embedded image in 0.4.3

GaBOr wrote:

If you need more info, I'll give it with pleasure. I can upload the map too if you need it.

Thanks for responsing.

That's what I call a detailed bug-report smile Hm, it's not impossible that your map-data got corrupted in some way. Did you try same steps with a "fresh" map?

Please upload your sample map that we can debug into this.

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

11 (edited by GaBOr 2008-09-18 12:15:05)

Re: [EDITOR] Crash when saving embedded image in 0.4.3

I have just tried to do the same steps in a new map with only that group and the group "Game" and it crashes too yikes

I have uploaded to MegaUpload (sorry smile ), but please, DON'T PLAY IT IN SERVERS. IT'S UNFINISHED. And sorry for the caps wink .

Size: 1.07 Mb
http://www.megaupload.com/es/?d=3PJ4S2L4

EDIT: I forgot to say it has 9 versions of the map (in order), and the image "face_sky2.png" is not embedded.

12

Re: [EDITOR] Crash when saving embedded image in 0.4.3

GaBOr wrote:

I have just tried to do the same steps in a new map with only that group and the group "Game" and it crashes too yikes

First, I noticed that face_main is embedded _and_ placed in data/mapres. When I opened your map, I couldn't see any tiles on screen. I don't know if this is related to the bug.

Anyway, could you please do some more debugging (e.g. setting different parameter, vary steps in their order, ...) till I have some time in order to have a deeper look into it.

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

13 (edited by Marik 2008-09-18 20:29:25)

Re: [EDITOR] Crash when saving embedded image in 0.4.3

Great map big_smile i like it

and i think i found the problem: Teeworlds Crashes if u don´t use a picture with the picturesize 1024X1024 for ur quad i´ll try it to prove it

it was the file size plz in future just remember this here is a fixed version of your map with the resized face_sky.png

http://rapidshare.com/files/146405132/c … d.rar.html

14

Re: [EDITOR] Crash when saving embedded image in 0.4.3

Thank you, Marik16 and datag.

I can't try your version of map right now because I'm downloading some files of rapidshare right now big_smile . But I'll try it as soon as possible. I didn't think about the image size because other maps use 512x512 images (suns, and other stuff).

At the moment, I'll try to resize the image myself.

Thank you very much.

15

Re: [EDITOR] Crash when saving embedded image in 0.4.3

Seriously, I don't know how you have done it. I have converted the image to 1024x1024 with the following programs: Irfanview and Photoshop CS3 and it didn't work! And your version, Marik16, works perfect!

What program did you use? Did you do anything when you save in .png format? Seriously, I don't understand.

16

Re: [EDITOR] Crash when saving embedded image in 0.4.3

i used inkscape xD and if you say ur version failed then i don´t know whats wrong then :X

17

Re: [EDITOR] Crash when saving embedded image in 0.4.3

sry for double post i have reworked ur map a bit hope u won´t mind and i won´t release it if u don´t like it

http://img123.imageshack.us/img123/5628/screenshot0073yq9.png

18

Re: [EDITOR] Crash when saving embedded image in 0.4.3

I haven't thought about it... yes, new ways are welcome in my map big_smile . Wait until I release the final version of my map. Then you can do that in the newest version, OK?