Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old May 27, 2009, 07:06   #1
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
JBand progress log.

Now gets as far as initializing object arrays before crashing.
(Half of) the 'news.txt' is displayed correctly - the left half. I also need to look into font files that support Japanese.

I will probably use UTF-16 for the text files because I am lazy and UTF-8 handling requires some post-processing code.

I have found that the Angband code is very sensitive to fiddling around with the include files. I'm worried that this may cause problems down the line if I want the code to look more like "proper" C++ code or for when I'm working on the language-switching code. Anybody interested in looking into this matter is welcome to checkout the code and fiddle with it or post on the ticket.
__________________
Currently turning (Angband) Japanese.

Last edited by PaulBlay; May 27, 2009 at 08:59.
PaulBlay is offline   Reply With Quote
Old May 27, 2009, 09:05   #2
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,305
Donated: $40
Pete Mack is on a distinguished road
Please don't use stl stuff unless you really have to.... That stuff can be surprisingly unportable, and it can also lead to really huge amounts of object code for a tiny bit of source. (C++ got templates wrong. Java 7 and C# get them much more right.)

Also beware UTF-16: Microsoft handles it well. *NIX handles it poorly. (wchar_t is 32 bits on most *NIXes.)
Pete Mack is offline   Reply With Quote
Old May 27, 2009, 10:09   #3
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
Please don't use stl stuff unless you really have to.... That stuff can be surprisingly unportable, and it can also lead to really huge amounts of object code for a tiny bit of source. (C++ got templates wrong. Java 7 and C# get them much more right.)
#include <shlwapi.h> is now gone.

I think I'll leave worrying about UTF-16 with *nix until I need to. It will doubtless take a long time to translate all the text so I'll have plenty of opportunity to play catch up then.

Splash screen now displays correctly

Files in /edit subdirectory are now in UTF-16.

Now reaches monster array initialization before crashing.

Reading UTF-8 files now works, so switched back from UTF-16
__________________
Currently turning (Angband) Japanese.

Last edited by PaulBlay; May 27, 2009 at 23:39.
PaulBlay is offline   Reply With Quote
Old May 28, 2009, 12:17   #4
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
I've been sneakily adding progress updates to my previous post because it would be over the top to have more than one post per day.

I've now gone back to UTF-8 and got it working as well with UTF-8 as it was with UTF-16. Which isn't saying much.

Separate file modes added for binary read and binary write.

I've decided that I've made enough progress(?) to see if I can find anybody who wants to take an active part in the development process. PM or post if you are interested. Openings for all levels of experience ;-) (Don't feel guilty if you're to busy with your own stuff - I know exactly how that is.)

I suspect I may have more luck with the Japanese developers at SourceForge.JP so I will also be soliciting help there.

Implemented changeset 1415 from Vanilla Angband.

Lots of variable type tweaking.
__________________
Currently turning (Angband) Japanese.

Last edited by PaulBlay; May 28, 2009 at 20:03.
PaulBlay is offline   Reply With Quote
Old June 4, 2009, 09:27   #5
Rizwan
Swordsman
 
Join Date: Jun 2007
Posts: 292
Rizwan is on a distinguished road
Quote:
Originally Posted by PaulBlay View Post
I've decided that I've made enough progress(?) to see if I can find anybody who wants to take an active part in the development process. PM or post if you are interested. Openings for all levels of experience ;-) (Don't feel guilty if you're to busy with your own stuff - I know exactly how that is.)
I suspect I may have more luck with the Japanese developers at SourceForge.JP so I will also be soliciting help there.
I would love to help and learn at the same time. Don't know Japanese, medium programming experience C/C++, busy with RL for the next couple of weeks.
Rizwan is offline   Reply With Quote
Old June 4, 2009, 11:13   #6
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by Rizwan View Post
Don't know Japanese, medium programming experience C/C++, busy with RL for the next couple of weeks.
Would that RL be "Real Life" or "RogueLike" ? ;-)

Either way I would love to hear from you in ~ two weeks time, whenever you're free. In the meantime I shall continue evaluating (struggling with) the various multi-platform GUI libraries available.
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old June 12, 2009, 07:45   #7
artanis
Rookie
 
Join Date: May 2009
Posts: 7
artanis is on a distinguished road
I think this thread is a little more on topic for this post.

I changed a few of the L"" to _T() as I was fixing the nmake build. I figured I had gotten all of them once it compiled successfully but I see that that was a silly assumption!

The nmake build is working now. The "clean" build target doesn't work because del doesn't seem to like / in paths. UNICODE is not defined in the makefile, but it will build both with and without it at this point.

I didn't commit the change that fixes the first crash bug. Commenting out the 3 FREE calls around init2.c:520 works well enough. I did commit a change to z-file in the file_put function that fixes the next crash bug.

Maybe I'll really go to sleep now
artanis is offline   Reply With Quote
Old June 12, 2009, 07:57   #8
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by artanis View Post
I changed a few of the L"" to _T() as I was fixing the nmake build. I figured I had gotten all of them once it compiled successfully but I see that that was a silly assumption!
I prefer __T() as it is easier to find and replace if necessary. (At least in VC++ _T(x) is just defined as __T(x)).

Quote:
I didn't commit the change that fixes the first crash bug. Commenting out the 3 FREE calls around init2.c:520 works well enough. I did commit a change to z-file in the file_put function that fixes the next crash bug.

Maybe I'll really go to sleep now
I'll see you when you wake up then.
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old June 12, 2009, 08:47   #9
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,305
Donated: $40
Pete Mack is on a distinguished road
Don't bother with NMAKE -- it's a crappy imitation of the real thing. If you can get it to work in Visual Studio, getting it to work in a real make file should not be hard.
Pete Mack is offline   Reply With Quote
Old June 12, 2009, 12:15   #10
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Quote:
I didn't commit the change that fixes the first crash bug. Commenting out the 3 FREE calls around init2.c:520 works well enough. I did commit a change to z-file in the file_put function that fixes the next crash bug.
I'll see you when you wake up then.
OK I obviously hadn't woken up earlier.

It looks like those FREE calls just needed to be included in the #if NO_RAW section. I'll commit that change now.

[EDIT] Progress update - with help from artanis we can now get as far as "File -> New" before it stops working (with an endless loop)
__________________
Currently turning (Angband) Japanese.

Last edited by PaulBlay; June 12, 2009 at 14:04.
PaulBlay 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
Goodbye Angband/65, hello JBand PaulBlay Development 6 May 26, 2009 07:55
Angband/65 development log PaulBlay Development 0 April 16, 2009 19:55
Borg 3.0.9 Progress Update APWhite Vanilla 3 August 10, 2007 03:15
[Un] Unangband 0.6.2 work in progress 5b released andrewdoull Variants 3 June 21, 2007 20:15
Progress report on longest living character K.I.L.E.R AAR 3 June 14, 2007 00:43


All times are GMT +1. The time now is 11:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.