# Experimental SDL version uploaded for Windows

**URL:** <https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713>\
**Category:** Announcements\
**Created:** [June 11, 2013, 3:15am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713 "2013-06-11T03:15:53Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![utunnels](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/utunnels/32/81_2.png) [@utunnels](https://discourse.cataclysmdda.org/u/utunnels)\
**Post date:** [June 12, 2013, 5:33am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/61 "2013-06-12T05:33:17Z")

</div>

It is not a “crash”. The game is just calculating turns.  
Although I agress it is better to have a “waiting…” window instead of freeze if it takes longer time on slow pc.

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [June 12, 2013, 5:51am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/62 "2013-06-12T05:51:53Z")

</div>

Yeah, it’s odd that it’s being considered non-responsive. Wonder what’s up with that. And I wonder how to make it realize that it’s NOT non-responsive…

Actually, I wonder if it’s maybe fast computers, not slow ones? Due to it being a tight loop, and all.

---

<div class="post-metadata">

**Author:** ![utunnels](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/utunnels/32/81_2.png) [@utunnels](https://discourse.cataclysmdda.org/u/utunnels)\
**Post date:** [June 12, 2013, 6:21am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/63 "2013-06-12T06:21:12Z")

</div>

Well on windows 7 it is common. I have lots of games show a non-responsive status on the title bar while loading. The most annoying side effect is the window sometimes goes white or shifts by some pixels.

It can be fixed by adding some message processing lines in the loop to make the OS assume it is not “dead”.

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [June 12, 2013, 6:28am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/64 "2013-06-12T06:28:37Z")

</div>

Ah, THAT’S what I was thinking of. Perfect :). So… we just need a getch() or similar during the sleep loop? Which, ironically, will make the GDI version laggier.

---

<div class="post-metadata">

**Author:** ![utunnels](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/utunnels/32/81_2.png) [@utunnels](https://discourse.cataclysmdda.org/u/utunnels)\
**Post date:** [June 12, 2013, 6:33am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/65 "2013-06-12T06:33:00Z")

</div>

Make a dummy function, for exmaple:

while(loop)  
{  
blahblah…  
processmessage(); // let OS handle recent window event  
}

If it is a curses version, you can just define an empty macro.

#if has\_real\_curses  
#define processmessage()  
#else  
extern void processmessage();  
#endif

---

<div class="post-metadata">

**Author:** ![TheGrifter](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@TheGrifter](https://discourse.cataclysmdda.org/u/TheGrifter)\
**Post date:** [June 12, 2013, 6:34am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/66 "2013-06-12T06:34:43Z")

</div>

Any new moddability in regards to the JSON files in this update?

---

<div class="post-metadata">

**Author:** ![Slax](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/slax/32/5385_2.png) [@Slax](https://discourse.cataclysmdda.org/u/Slax)\
**Post date:** [June 12, 2013, 7:17am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/67 "2013-06-12T07:17:28Z")

</div>

![](http://i.imgur.com/4dHkJ6L.png)  
Any idea what might be causing this?

---

<div class="post-metadata">

**Author:** ![utunnels](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/utunnels/32/81_2.png) [@utunnels](https://discourse.cataclysmdda.org/u/utunnels)\
**Post date:** [June 12, 2013, 7:30am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/68 "2013-06-12T07:30:36Z")

</div>

What is your setting?

---

<div class="post-metadata">

**Author:** ![Slax](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/slax/32/5385_2.png) [@Slax](https://discourse.cataclysmdda.org/u/Slax)\
**Post date:** [June 12, 2013, 7:34am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/69 "2013-06-12T07:34:08Z")

</div>

SDL,  
C:…\cootue\_curses\_square\_16x16.ttf  
16  
16  
16

`force_capital_yn T
use_celsius T
use_metric_system T
no_bright_backgrounds F
24_hour 2
snap_to_target F
safemode T
safemodeproximity 20
autosafemode T
autosafemodeturns 50
autosave F
autosave_turns 30
autosave_minutes 5
gradual_night_light T
rain_animation T
circledist T
query_disassemble T
drop_empty 1
skill_rust 1
delete_world 0
initial_points 8
max_trait_points 12
initial_time 8
viewport_x 26
viewport_y 26
move_view_offset 0
static_spawn T
classic_zombies F
season_length 14
static_npc F
random_npc F
rad_mutation T
save_sleep F
`

---

<div class="post-metadata">

**Author:** ![utunnels](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/utunnels/32/81_2.png) [@utunnels](https://discourse.cataclysmdda.org/u/utunnels)\
**Post date:** [June 12, 2013, 7:46am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/70 "2013-06-12T07:46:17Z")

</div>

Hmm, looks like the font has a strange baseline value.  
How does it look like in ordinary windows version?

[hr]

`cataclysmdda-0.5.zip 879 B/s - 290 KB of 4.1 MB, 1 hour left
http://ci.narc.ro/job/Cataclysm-Win32/lastSuccessfulBuild/artifact/cataclysmdda-0.5.zip`  
Facepalm, my download speed.

---

<div class="post-metadata">

**Author:** ![vultures](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/vultures/32/69_2.png) [@vultures](https://discourse.cataclysmdda.org/u/vultures)\
**Post date:** [June 12, 2013, 9:50am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/71 "2013-06-12T09:50:31Z")

</div>

It’s a pretty girl this SDL, I’m sure the freckles will fade in time. A good effort and a serious playability upgrade, for sure - and I’m blaming Soron. 🙂  
I’ll make a run to my 128 meg machine and test it there also. I noticed some one-fifth increase in savegame (disk access-write payback) handling; just curious - how’d you manage that?

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [June 12, 2013, 9:56am UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/72 "2013-06-12T09:56:33Z")

</div>

Blame/thank utunnels as well - they’re responsible for the initial code, I just got it cleaned up for inclusion in mainline.

Also, TheGrifter: no major changes to data files, as far as I’m aware.

---

<div class="post-metadata">

**Author:** ![Mate](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mate/32/73_2.png) [@Mate](https://discourse.cataclysmdda.org/u/Mate)\
**Post date:** [June 12, 2013, 12:41pm UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/73 "2013-06-12T12:41:35Z")

</div>

[quote=“Slax, post:27, topic:1713”]^ is sort of a tricky thing on some keyboards, mine included. Shift+^ key, then space. Otherwise it doesn’t register.  
You get used to it though. Eventually.[/quote]  
For me it’s Alt Gr+2, then space…

---

<div class="post-metadata">

**Author:** ![Drakasin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/drakasin/32/850_2.png) [@Drakasin](https://discourse.cataclysmdda.org/u/Drakasin)\
**Post date:** [June 12, 2013, 1:18pm UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/74 "2013-06-12T13:18:31Z")

</div>

[quote=“Máté, post:73, topic:1713”][quote=“Slax, post:27, topic:1713”]^ is sort of a tricky thing on some keyboards, mine included. Shift+^ key, then space. Otherwise it doesn’t register.  
You get used to it though. Eventually.[/quote]  
For me it’s Alt Gr+2, then space…[/quote]  
Or you can always switch to enUS keyboard like I do with my czech keyboard.

---

<div class="post-metadata">

**Author:** ![Mate](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mate/32/73_2.png) [@Mate](https://discourse.cataclysmdda.org/u/Mate)\
**Post date:** [June 12, 2013, 1:33pm UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/75 "2013-06-12T13:33:33Z")

</div>

[quote=“Drakasin, post:74, topic:1713”][quote=“Máté, post:73, topic:1713”][quote=“Slax, post:27, topic:1713”]^ is sort of a tricky thing on some keyboards, mine included. Shift+^ key, then space. Otherwise it doesn’t register.  
You get used to it though. Eventually.[/quote]  
For me it’s Alt Gr+2, then space…[/quote]  
Or you can always switch to enUS keyboard like I do with my czech keyboard.[/quote]  
But than the layout is so different I can’t find anything, but the letters by sight and even then, Z and Y are switched.

---

<div class="post-metadata">

**Author:** ![Scheuche](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@Scheuche](https://discourse.cataclysmdda.org/u/Scheuche)\
**Post date:** [June 12, 2013, 3:18pm UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/76 "2013-06-12T15:18:59Z")

</div>

> [@Máté](#):
>
> But than the layout is so different I can’t find anything, but the letters by sight and even then, Z and Y are switched.

Its rather easy to learn (at least in my biased opinion). 'Though i use my normal Layout for playing CDD since i got used to it. Maybe i should switch. Decisions, decisions…

![](http://ingomar.wesp.name/2007/06/eigene-tastaturbelegungen-in-x11-xorg/keyboard-ibm-pc101-us-layout.jpg)

Edit: removed one too many quotes…

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [June 12, 2013, 3:39pm UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/77 "2013-06-12T15:39:36Z")

</div>

> [@vultures](#):
>
> I’ll make a run to my 128 meg machine and test it there also. I noticed some one-fifth increase in savegame (disk access-write payback) handling; just curious - how’d you manage that?

If you mean faster disk handling (I’m not sure I follow your statement), it’s a recent change unrelated to the SDL stuff, where the game was writing out overmaps to disk unnecessarally and very frequently. Quietust pinpoined it for me and I realized the offending code was unecessary.

So it’s not faster, it’s doing less disk accesses, which is even better ;D

---

<div class="post-metadata">

**Author:** ![kenoxite](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kenoxite/32/858_2.png) [@kenoxite](https://discourse.cataclysmdda.org/u/kenoxite)\
**Post date:** [June 12, 2013, 3:41pm UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/78 "2013-06-12T15:41:45Z")

</div>

The issue with inaccessible keybinds in non-US keyboards was reported already in a previous version (either 0.4 or 0.5) and was fixed back then. I don’t see why they won’t be willing and able to fix this new/old issue.

And considering that a lot (the majority?) of CataDDA’s player base isn’t in or from the US I’m sure they’ll get this sorted sooner than later. In fact, I think I saw something about this reported in github a few days back.

---

<div class="post-metadata">

**Author:** ![Mate](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mate/32/73_2.png) [@Mate](https://discourse.cataclysmdda.org/u/Mate)\
**Post date:** [June 12, 2013, 4:00pm UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/79 "2013-06-12T16:00:20Z")

</div>

[quote author=Scheuche link=topic=1770.msg21669#msg21669 date=1371050339]

> [@Máté](#):
>
> [quote=“Máté, post:73, topic:1713”]But than the layout is so different I can’t find anything, but the letters by sight and even then, Z and Y are switched.

Its rather easy to learn (at least in my biased opinion). 'Though i use my normal Layout for playing CDD since i got used to it. Maybe i should switch. Decisions, decisions…

![](http://ingomar.wesp.name/2007/06/eigene-tastaturbelegungen-in-x11-xorg/keyboard-ibm-pc101-us-layout.jpg)

![](http://frontype.com/keyboarding/540px-Hungarian-keyboard-layout.svg.png)

---

<div class="post-metadata">

**Author:** ![Slax](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/slax/32/5385_2.png) [@Slax](https://discourse.cataclysmdda.org/u/Slax)\
**Post date:** [June 12, 2013, 6:25pm UTC](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713/80 "2013-06-12T18:25:03Z")

</div>

[quote=“utunnels, post:70, topic:1713”]Hmm, looks like the font has a strange baseline value.  
How does it look like in ordinary windows version?[/quote]  
Doesn’t matter what font I use. There’s always some sort of strangeness.

 ![](http://i.imgur.com/8eTlbii.png)  
See the skewing?

Everything’s always been fine (even on MGS SDL binaries) but not with this.

[Previous page](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713.md?page=3)

[Next page](https://discourse.cataclysmdda.org/t/experimental-sdl-version-uploaded-for-windows/1713.md?page=5)
