Page 1 of 1

(GIT)Random Name Generator Errors

Posted: Thu Jun 13, 2013 5:55 pm
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

Re: (GIT)Random Name Generator Errors

Posted: Mon Jun 17, 2013 10:30 am
by darkgod
I cant seem to reproduce :/
Does it always fails or only sometimes ?

Re: (GIT)Random Name Generator Errors

Posted: Tue Jun 18, 2013 1:07 pm
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.)

Re: (GIT)Random Name Generator Errors

Posted: Tue Jun 18, 2013 5:30 pm
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.

Re: (GIT)Random Name Generator Errors

Posted: Thu Jun 20, 2013 3:17 pm
by johnnyzero
[git] game freezes after engaging adventurere party is a duplicate of this issue. Check out that link for resolution.