(GIT)Random Name Generator Errors

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

(GIT)Random Name Generator Errors

#1 Post by Hachem_Muche »

Since the transfer from svn to git, the random name generator fails - causing an error when trying to create a character with a random name and frequently causing a crash when generating stair guards in the I.D.

I've traced the error back to trouble loading files in the mod.data.languages.names directory.
Sample error dump:

Code: Select all

[BIRTHER] checking allowance for 	None	class	::	subclass=true 
[BIRTHER] test against 	base	=>	disallow	false
[BIRTHER] test against 	Maj'Eyal	=>	disallow	false
[BIRTHER] test against 	Normal	=>	nil	false
[BIRTHER] set descriptor	class	Adventurer
Missing 	subclass
[BIRTHER] set descriptor	subclass	Adventurer
[BIRTHER] set descriptor	class	Afflicted
[BIRTHER] set descriptor	subclass	Cursed
Loading language	/data/languages/names/shalore_female.txt
Lua Error: /engine/utils.lua:229: table index is nil
	At [C]:-1 __newindex
	At /engine/utils.lua:229 from_list
	At /engine/NameGenerator2.lua:77 generate
	At /mod/dialogs/Birther.lua:428 randomName
	At /mod/dialogs/Birther.lua:419 randomBirth
	At /mod/dialogs/Birther.lua:64 fct
	At /engine/ui/Button.lua:62 fct
	At /engine/Mouse.lua:52 receiveMouse
	At /engine/Mouse.lua:90 delegate
	At /engine/ui/Dialog.lua:525 mouseEvent
	At /engine/ui/Dialog.lua:304 fct
	At /engine/Mouse.lua:52 
Loading tile	player/elf_female/base_shadow_01.png
[PROFILE THREAD] batching CSETs
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: (GIT)Random Name Generator Errors

#2 Post by darkgod »

I cant seem to reproduce :/
Does it always fails or only sometimes ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Re: (GIT)Random Name Generator Errors

#3 Post by greycat »

I didn't have a problem with this either. Are your files intact?
-rw-r--r-- 1 wooledg wooledg 4494 Jun 7 08:58 game/engines/default/engine/NameGenerator2.lua
-rw-r--r-- 1 wooledg wooledg 4403 Jun 7 08:58 game/engines/default/engine/NameGenerator.lua

-rw-r--r-- 1 wooledg wooledg 11755 Jun 7 08:58 game/modules/tome/data/languages/names/shalore_female.txt
-rw-r--r-- 1 wooledg wooledg 12437 Jun 7 08:58 game/modules/tome/data/languages/names/shalore_male.txt
(Git origin/master branch.)

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: (GIT)Random Name Generator Errors

#4 Post by Hachem_Muche »

Ok. so I've deleted and reloaded the name files from the repository and, while they look the same in a text editor, they are obviously different.

For example, the shalore_female.txt I pulled is 13,786 bytes (vs greycat's 11755 bytes). As an extra check I copied over the the files from 1.0.4 release and don't get any errors.

Apparently I'm getting (slightly) different versions of (only?) these files that have some unprintable white space characters that are messing up parsing.

On a windows machine I'm pulling from http://git.net-core.org/darkgod/t-engine4.git
with options:
Remote: origin
Remote Branch: master
My full git configuration is:

Code: Select all

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
	hideDotFiles = dotGitOnly
[remote "origin"]
	url = http://git.net-core.org/darkgod/t-engine4.git
	fetch = +refs/heads/*:refs/remotes/origin/*
	puttykeyfile = 
[branch "master"]
	remote = origin
	merge = refs/heads/master
Since I've not used Git before, I'm sure I've got something set up wrong, I just don't know what it is.
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

johnnyzero
Thalore
Posts: 148
Joined: Tue Feb 28, 2012 6:36 am

Re: (GIT)Random Name Generator Errors

#5 Post by johnnyzero »

[git] game freezes after engaging adventurere party is a duplicate of this issue. Check out that link for resolution.

Post Reply