News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Crashed!

Started by ansonscleung, August 05, 2011, 02:01:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ansonscleung

Here is my save. http://www.ansonscleung.tk/simu/HK.sve
Here is the .pak I have. http://www.ansonscleung.tk/simu/Simu.zip
Every time when it comes to 24:00 Feb / 00:00 Mar 2066, it will crash and Simutrans will be no respond.
Can anyone help me to check it out?
Simutrans 110.0.1 with Traditional Chinese

Guillaume

I'm sorry, but I can't download your savegame, it seems that the link is not good  ;)

ansonscleung

You may right-click the link and choose "Save link as..." (Something like that in Firefox, since I use the Trad. Chi. Version)
Anyway, thank you.

Guillaume

#3
I'm sorry but the download speed is so low ( 5Ko/s  :P ) and then after 10 minutes I lost connection...
I'm unable to download it sorry


ansonscleung

Where do you come from?
My server is in Hong Kong, therefore if you live in some countries that are far away, then the download may be difficult.

Guillaume

#5
I'm in France  ;)
But I succesfully downloaded it now

After testing it, I have no problem with the savegame after the end of february 2066.
I don't know what can be the problem, but it comes from your installation.
Maybe you can try to make a new folder of simutrans in my documents ( "clean" ) and of its installation, and then try it...

TurfIt

Cause is a translation problem in the Chinese language files (both cn and zh) record_text section. The order of the specifiers cannot be changed like somebodies tried to do. Try replacing your language files with the attached...

Also, your rather lengthy stop names are overflowing some internal buffers in certain other languages. Should be fixed in r4748.

ansonscleung

#7
The problem in Trad. Chi. still exist (since I can pass to the March in English)  :-[
But I find that if I pass the point in Eng. and change the language in Trad. Chi., it solved!  ;)
But every time the save pass a month, it crash again!!!
Thank you all for you which had help me...  :)
But one more question is that when will r4748 distribute? ???

TurfIt

The 110.0.1 release works for me (runs several months atleast) in T. Chinese and S. Chinese as long as the replacement language files I attached are used. Are you sure you're using them? They belong as simutrans/text/cn.tab and simutrans/text/zh.tab.

Changing to English can help, but in Chinese anytime a vehicle sets a speed record it may crash.

r4748 should be available with tonights nightly build.

ansonscleung

#9
Where to download nightly build? ???
I forgot it.
P.S. What's that "tonight" stands for ???
because it still r4747 in 2:40 AM 7-8-2011 UTC+8 (I live in Hong Kong)

TurfIt


prissi

Could this be fixed on the translator? Resp. what string is broken exactly?

(Order replacement should work in the nightlies ... )

TurfIt

Fixing in translator is required for:
#__________________________________record_text__________________________________
#__________________________________record_text__________________________________
New world record for maglevs: %.1f km/h by %s.
%s 创造了新磁悬浮列车世界纪录: %.1f km/h
New world record for monorails: %.1f km/h by %s.
%s 创造了新单轨世界纪录: %.1f km/h
New world record for motorcars: %.1f km/h by %s.
%s 创造了新车辆世界纪录: %.1f km/h
New world record for narrowgauges: %.1f km/h by %s.
%s 创造了新窄轨世界纪录: %.1f km/h
New world record for planes: %.1f km/h by %s.
%s 创造了新航空世界纪录: %.1f km/h
New world record for railways: %.1f km/h by %s.
%s 创造了新铁路世界纪录: %.1f km/h
New world record for ship: %.1f km/h by %s.
%s 创造了船运新世界纪录:\n%.1f km/h
in both cn and zh languages.

Order replacement didn't work for me, but I didn't spend much time investigating.
Trying "%2$s xxxx %1$.1f" results in "%s xxxx %.1f" as the literal output. i.e. The order specifiers are stripped out but the actual values don't get put in.

prissi

Order replacement worked for me, using my builtin function as well as the official one from mircosoft.

The problem was that the function in question used sprintf and bot cbuffer_t::printf !

TurfIt

That is indeed the order replacement problem. Interesting behaviour from the standard sprintf... but changed to cbuffer_t now.

ansonscleung

Why I can't use Chinese ???

ansonscleung

#__________________________________record_text__________________________________
#__________________________________record_text__________________________________
New world record for maglevs: %.1f km/h by %s.
%2$s 创造了%1$.1f km/h的新磁悬浮列车世界纪录
New world record for monorails: %.1f km/h by %s.
%2$s 创造了%1$.1f km/h的新单轨世界纪录
New world record for motorcars: %.1f km/h by %s.
%2$s 创造了%1$.1f km/h的新车辆世界纪录
New world record for narrowgauges: %.1f km/h by %s.
%2$s 创造了%1$.1f km/h的新窄轨世界纪录
New world record for planes: %.1f km/h by %s.
%2$s 创造了%1$.1f km/h的新航空世界纪录
New world record for railways: %.1f km/h by %s.
%2$s 创造了%1$.1f km/h的新铁路世界纪录
New world record for ship: %.1f km/h by %s.
%2$s 创造了%1$.1f km/h的船运新世界纪录