Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old June 11, 2022, 18:54   #71
Cryomaniac
Adept
 
Join Date: Jan 2022
Posts: 193
Cryomaniac is on a distinguished road
Quote:
Originally Posted by Gwarl View Post
The readme for this version says you need to use the japanese locale to make it work.. appliccable to windows only or not I'm not sure. It would not compile when I commented that line out either; I don't think defines.h is being read because the compiler starts complaining that the things defined there are not defined; grep considers defines.h a binary file, perhaps this is related? I gather that multibyte encodings for text are at play. Presumably the compiler needs to understand the locale. I tried converting some complaining files like defines.h into UTF-8 and setting the japanese locale I did have in the makefile but the build still doesn't complete.
It required Japanese locale for me to compile in Windows with the .bcc makefile; I can't say how it should be compiled for other systems. The source files have Japanese text in them, which might throw off the compiler unless it can properly read them.
Cryomaniac is offline   Reply With Quote
Old June 11, 2022, 20:54   #72
backwardsEric
Swordsman
 
Join Date: Aug 2019
Posts: 340
backwardsEric is on a distinguished road
This is what I did to get it to compile and link on Debian 11 with Debian's packaged version of gcc 10.2.1 as the compiler:
  1. Install the nkf package. Later steps will use the nkf utility to change the encoding of the Japanese characters in the source files to EUC-JP so they don't confuse the compiler.
  2. Apply the attached patch by running "git am -i path_to_file_with_patch_information" from within the directories for the Touhou Katteban source code. That sets up a compiler wrapper script (largely borrowed from Hengband 2 for converting the character encoding of .c files), modifies externs.h to avoid duplicate symbol errors from the linker, hacks main.c to avoid some linker errors and a runtime error at startup, and hacks makefile.std to update the list of needed source files, disable display of Japanese text, and use the wrapper script for compiling.
  3. Change the character encoding of defines.h by running this in the src directory: "mv defines.h defines.h.good; nkf -e defines.h.good > defines.h".
  4. Compile and link by running "make -f makefile.std" in the src directory.

The result of compiling and linking runs and gets to the character generation screen. I didn't keep running it to see if there were any issues lurking further on.
Attached Files
File Type: txt patch.txt (6.8 KB, 29 views)
backwardsEric is offline   Reply With Quote
Old June 12, 2022, 19:05   #73
Cryomaniac
Adept
 
Join Date: Jan 2022
Posts: 193
Cryomaniac is on a distinguished road
I've merged the Linux fixes pull requests into main on my github project.
Cryomaniac is offline   Reply With Quote
Old June 13, 2022, 09:11   #74
Cryomaniac
Adept
 
Join Date: Jan 2022
Posts: 193
Cryomaniac is on a distinguished road
Merged another pull request for Linux compilation fix.
Cryomaniac is offline   Reply With Quote
Old June 13, 2022, 13:42   #75
backwardsEric
Swordsman
 
Join Date: Aug 2019
Posts: 340
backwardsEric is on a distinguished road
Quote:
Originally Posted by Cryomaniac View Post
Merged another pull request for Linux compilation fix.
With those changes, this procedure,
  1. Edit src/makefile.std to comment out the "JP_OPT= ..." line.
  2. In a terminal window, change directories to the src directory and run "make -f makefile.std".

, worked to compile an English version on Debian 11. It does require access to the nkf utility, https://osdn.net/projects/nkf/ , in the path; on Debian or Ubuntu you can get that by installing the nkf package . I can work up a change to the README to document that if you like.

Last edited by backwardsEric; June 13, 2022 at 13:44. Reason: added note that it needs the nkf utility
backwardsEric is offline   Reply With Quote
Old June 13, 2022, 13:50   #76
Cryomaniac
Adept
 
Join Date: Jan 2022
Posts: 193
Cryomaniac is on a distinguished road
Yes, add that bit to README.
Cryomaniac is offline   Reply With Quote
Old June 13, 2022, 15:14   #77
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 946
Gwarl will become famous soon enough
Okay it's still a bit messy but it's up on angband.live. Use at your own risk for now.
Gwarl is offline   Reply With Quote
Old June 13, 2022, 15:30   #78
Cryomaniac
Adept
 
Join Date: Jan 2022
Posts: 193
Cryomaniac is on a distinguished road
Thanks; I personally prefer playing on my PC (no input lag), but there's probably other players who'd appreciate the option.
Cryomaniac is offline   Reply With Quote
Old June 14, 2022, 11:55   #79
Cryomaniac
Adept
 
Join Date: Jan 2022
Posts: 193
Cryomaniac is on a distinguished road
Looks like the build on .live has a bug where your HP doesn't naturally regenerate; unfortunately, I'm working with Windows version, so I can't directly do something about that.
Cryomaniac is offline   Reply With Quote
Old June 14, 2022, 13:05   #80
backwardsEric
Swordsman
 
Join Date: Aug 2019
Posts: 340
backwardsEric is on a distinguished road
Quote:
Originally Posted by Cryomaniac View Post
Looks like the build on .live has a bug where your HP doesn't naturally regenerate; unfortunately, I'm working with Windows version, so I can't directly do something about that.
Looks like the compilation should be done with HAVE_STDINT_H set on Linux/Unix platforms where stdint.h is present and long is a 64-bit type. Changes to makefile.std to do that are up as a pull request on GitHub.
backwardsEric is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hengband 3.0.0Alpha releases in Japanese & English - unofficial English build notes smbhax Variants 29 December 12, 2022 00:50
[Announce] English Translation (0.2) for Hengband Touhou Katteban Cryomaniac Variants 10 March 26, 2022 16:08
My Hengband Touhou Katteban play diary Cryomaniac AAR 12 March 22, 2022 11:26
[Announce] Alpha English Translation (0.1) for Hengband Touhou Katteban Cryomaniac Variants 16 March 21, 2022 20:17
Hengband 3.0.0Alpha52 released in Japanese & English - unofficial English build notes smbhax Variants 1 February 6, 2022 20:32


All times are GMT +1. The time now is 15:02.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.