https://bugs.winehq.org/show_bug.cgi?id=39308
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://th-df-rpg.weebly.com | |/ CC| |focht@gmx.net Component|dos |-unknown Version|unspecified |1.7.51 Summary|thdf.exe : outputting |Treasure Hunter - Dragon |floats returns 0 |Fighter 2 (console/text | |based game): printing | |floats using standard C++ | |output stream shows '0'
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello enoua5,
could you provide a small C++ example snippet and attach a non-interactive example app that shows the problem?
I fail to see where the problem occurs:
--- snip --- $ wine ./treasure\ hunter\ ~\ dragon\ fighter\ 2(winz!).exe
notice: always remember... 1 means yes and 0 means
type 1 and hit enter to access cheats, type 0 and hit enter to play normaly (just play normally, you human fool :3 ): fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33fbf8 1 C) semi-stub
1 fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33fc98 1 C) semi-stub fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33fa90 1 C) semi-stub
use game generations seed? (bool): edit character stats? (bool): edit enemies? (bool): choose enemy species (def dragon)(string): choose mini enemy species (def ghost dragon)(string(no spaces)): how many times weaker shall ghost dragons be than dragons? (def fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33fca4 1 C) semi-stub 2)(int): how many times stronger shall bosses be than normal? (def 2)(float): choose starting dragon power (def 1)(float): choose starting dragon health (def 10)(float): ultimate dragon shall occur every, how many floors? (def 3)(int): edit xp-type things? (bool): choose starting floor (def 1)(int): choose starting xp (def 0)(int): choose first level up point (def 10)(float): choose level up increase between levels (def 2.5)(float): edit rarities? (bool): choose golden kitten rarity (higher number is more rare)(def 100)(int): edit magic? (bool): include magic attacks? (def 1)(bool): choose starting magics (def 3)(int): choose magic attack boost (def 2)(int): edit game settings? (bool): play using a nonlinear dungeon? (def 1)(bool): include sound? (def 1)(bool): dungeon size (int); x(def 9): and y(def 9): starting possition (int); x(def 0): and y(def 0): make game winnable? (def 1)(bool): you enter the dungeon
building dungeon, please wait. . . dungeon built
the door closes behind you
encountered ghost dragon
ghost dragon hit you
you took 0.5 damage
you have 49.5 health left
ghost dragon hit you
you took 0.5 damage
you have 49 health left
you attack the ghost dragon
would you like to use a magic to increase your power? you have 3 magics left enter 1 or 0: ghost dragon took 2 damage
ghost dragon has 3 health left
ghost dragon hit you
you took 0.5 damage
you have 48.5 health left
ghost dragon hit you
you took 0.5 damage
you have 48 health left
you attack the ghost dragon
would you like to use a magic to increase your power? you have 3 magics left enter 1 or 0: ghost dragon took 5 damage
ghost dragon has -2 health left
you defeated the ghost dragon!
you recieved 1 xp and 1 money
1 money defated 1 dragons you traveled through 1 rooms you have 5 power you have 48 health dragons have 10 health dragons have 1 power you are on floor 1 you have 1 xp, are at level 0, and will level up with 10 xp you have found 0 golden kittens you have 3 magic uses left you are using fist to fight you are at x: 0, and y: 0 ... --- snip ---
I changed the ticket component since your app is not DOS but obviously a win32 console app, linked with VC++ 2010 runtime:
--- snip --- -=[ ProtectionID v0.6.6.7 DECEMBER]=- (c) 2003-2015 CDKiLLER & TippeX Build 24/12/14-22:48:13 Ready... Scanning -> Z:\home\focht\Downloads\treasure hunter ~ dragon fighter 2(winz!).exe File Type : 32-Bit Exe (Subsystem : Win CUI / 3), Size : 50688 (0C600h) Byte(s) Compilation TimeStamp : 0x5509F320 -> Wed 18th Mar 2015 21:50:24 (GMT) [TimeStamp] 0x5509F320 -> Wed 18th Mar 2015 21:50:24 (GMT) | PE Header | - | Offset: 0x00000100 | VA: 0x00400100 | - [TimeStamp] 0x5509F320 -> Wed 18th Mar 2015 21:50:24 (GMT) | DebugDirectory | - | Offset: 0x000067B4 | VA: 0x004081B4 | - [!] Executable uses SEH Tables (/SAFESEH) (10 calculated 10 recorded... 0 invalid addresses) [File Heuristics] -> Flag #1 : 00000100000001001101000000000000 (0x0404D000) [Entrypoint Section Entropy] : 6.06 (section #0) ".text " | Size : 0x6099 (24729) byte(s) [DllCharacteristics] -> Flag : (0x8140) -> ASLR | DEP | TSA [SectionCount] 5 (0x5) | ImageSize 0x3E1000 (4067328) byte(s) [Debug Info] (record 1 of 1) (file offset 0x67B0) Characteristics : 0x0 | TimeDateStamp : 0x5509F320 (Wed 18th Mar 2015 21:50:24 (GMT)) | MajorVer : 0 / MinorVer : 0 -> (0.0) Type : 2 (0x2) -> CodeView | Size : 0xB3 (179) AddressOfRawData : 0x9168 | PointerToRawData : 0x7768 CvSig : 0x53445352 | SigGuid 49C8F51D-29F9-4D76-82310BC8FB2908E8 Age : 0x65 | Pdb : C:\Documents and Settings\Jacob\my documents\visual studio 2010\Projects\treasure hunter ~ dragon fighter 2\Release\treasure hunter ~ dragon fighter 2.pdb [CompilerDetect] -> Visual C++ 10.0 (Visual Studio 2010) [!] File appears to have no protection or is using an unknown protection - Scan Took : 0.367 Second(s) [00000016Fh (367) tick(s)] [499 of 573 scan(s) done] --- snip ---
$ sha1sum treasure\ hunter\ ~\ dragon\ fighter\ 2(winz!).exe cd9605aa0844711ed4942564d4842551a011957a treasure hunter ~ dragon fighter 2(winz!).exe
$ du -sh treasure\ hunter\ ~\ dragon\ fighter\ 2(winz!).exe 52K treasure hunter ~ dragon fighter 2(winz!).exe
$ wine --version wine-1.7.51-201-g60d1d6f
Regards