[git] game freezes after engaging adventurere party

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
MisiuPysiu
Archmage
Posts: 379
Joined: Tue Nov 11, 2003 10:54 am
Location: Wroclaw/Poland

[git] game freezes after engaging adventurere party

#1 Post by MisiuPysiu »

Hi,

In the latest git version after engaging some adventurer group on the world map, the game freezes. The adventurer zone doesn't load.

I tried, and reproduced this bug without any addons installed, with the latest git version.

Cheers.

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

Re: [git] game freezes after engaging adventurere party

#2 Post by darkgod »

Cant seem to reproduce, can you reupdate, recompile the exe and try again please ?
[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 ;)

MisiuPysiu
Archmage
Posts: 379
Joined: Tue Nov 11, 2003 10:54 am
Location: Wroclaw/Poland

Re: [git] game freezes after engaging adventurere party

#3 Post by MisiuPysiu »

yeah, this may be caused by my old version of the exe files :)

I will try with a newer version and report back.

Cheers.

MisiuPysiu
Archmage
Posts: 379
Joined: Tue Nov 11, 2003 10:54 am
Location: Wroclaw/Poland

Re: [git] game freezes after engaging adventurere party

#4 Post by MisiuPysiu »

Hmm,

Used the latest .exe files (generated today by johnnyzero). but the problem still occurs. I tried a new character, still the same. I don't know, I haven't compiled the .exe files by myself so I can't tell if the problem lies there.

Cheers.

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

Re: [git] game freezes after engaging adventurere party

#5 Post by johnnyzero »

I can't reproduce the issue.
I'm on git master, commit 0ff7f01cc16988ea78ce58da00357b0b3c23d5a5.

When was the last time you did a git pull? The binary I posted earlier today won't work with lua from earlier revisions in the master branch (i.e., you have to be at least on the commit mentioned in the binary).

MisiuPysiu
Archmage
Posts: 379
Joined: Tue Nov 11, 2003 10:54 am
Location: Wroclaw/Poland

Re: [git] game freezes after engaging adventurere party

#6 Post by MisiuPysiu »

Hmm,

I pulled the git today (using TortoiseGit), together with the ego item changes.
I copied all the files from Your zipped file into the t-engine4 directory. I used to do so for the last year, when different binaries were compiled (tried to do it by myself but failed miserably twice).

To reproduce, I created a new berserker lev 1 and went to the world map. Engaged the first adventure party i found.
The progress bar is just filling up and cleaning (going to 100% and back to 0%) over and over again and nothing happens :(

No addons are beeing used.

MisiuPysiu
Archmage
Posts: 379
Joined: Tue Nov 11, 2003 10:54 am
Location: Wroclaw/Poland

Re: [git] game freezes after engaging adventurere party

#7 Post by MisiuPysiu »

Just noticed, the same behavior occurs when you want to enter the ruined dungeon.
And this time my 24 lev solipsist is gone. The game saved on an non existing level - save is broken :(

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

Re: [git] game freezes after engaging adventurere party

#8 Post by darkgod »

I'll need the te4_log.txt file then (oh and do run wioth the flush log option please)
[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 ;)

MisiuPysiu
Archmage
Posts: 379
Joined: Tue Nov 11, 2003 10:54 am
Location: Wroclaw/Poland

Re: [git] game freezes after engaging adventurere party

#9 Post by MisiuPysiu »

Here is the file,
te4_log.txt
(118.71 KiB) Downloaded 372 times
cheers :)

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

Re: [git] game freezes after engaging adventurere party

#10 Post by johnnyzero »

Thanks for the log.

My hunch seems to be correct. I converted these .txt files to DOS format line endings (CRLF) from unix line endings (LF) and see the same behavior as you. On my machine, I cloned the repository with cygwin's git, which left the .txt files with unix line endings. Darkgod uses linux for his development, so it makes sense that he wouldn't see the issue either.

For a short-term fix, MisiuPysiu, you will want to make sure you're cloning/checking out T-Engine with Unix/LF line endings. I think you can set this option with the Git for Windows installer.

This link explains project line endings in more detail. Darkgod, you might want to set the .gitattributes file for the project to make sure that unix line endings are always used (since t-engine is sensitive to them).

MisiuPysiu
Archmage
Posts: 379
Joined: Tue Nov 11, 2003 10:54 am
Location: Wroclaw/Poland

Re: [git] game freezes after engaging adventurere party

#11 Post by MisiuPysiu »

hey,

this seems to be a perfect explenation for the bug. Im in the middle of cloning the git repository without crlf conversion. Hope this will help:)

Thanks a lot for the help:)

Cheers.

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

Re: [git] game freezes after engaging adventurere party

#12 Post by Hachem_Muche »

Ahah! This is the same error I reported here: http://forums.te4.org/viewtopic.php?f=42&t=38172

Johnny, what is the exact syntax for the "Unix/LF line endings" you're talking about? I can't find any option like it in Tortoise Git's Windows GUI interface.

I worked around this problem by manually copying the text files in the mod.data.languages.names directory from the 1.0.4 release into my local repository.
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] game freezes after engaging adventurere party

#13 Post by johnnyzero »

Tortoisegit looks to require msysgit, so load up a git bash shell (found in your start menu), cd to your t-engine checkout, and enter the following command:

Code: Select all

git config core.autocrlf false
or you can set up your git install to globally disable line ending conversion:

Code: Select all

git config --global core.autocrlf false
You'll have to reset or re-checkout the project. Check out the link I posted earlier for more info.

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

Re: [git] game freezes after engaging adventurere party

#14 Post by Hachem_Muche »

Fixed, thanks.

For windows users, the procedure is to go to the settings screen and open up Git settings. Then click "Edit global .gitconfig" to open up the global config file and add:

Code: Select all

[core]
	autocrlf = false
Edit: Found the button to select "AutoCrlf" also need to set "SafeCrtlf" to true or else Git will mess up patches as it flags every line as different.
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] game freezes after engaging adventurere party

#15 Post by darkgod »

I fixed the file reader to correctly understand \r\n (it's still a bad idea to use windows line endings, it's dirty)
[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 ;)

Post Reply