Page 1 of 1
[git] game freezes after engaging adventurere party
Posted: Tue Jun 18, 2013 12:16 pm
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.
Re: [git] game freezes after engaging adventurere party
Posted: Tue Jun 18, 2013 9:54 pm
by darkgod
Cant seem to reproduce, can you reupdate, recompile the exe and try again please ?
Re: [git] game freezes after engaging adventurere party
Posted: Tue Jun 18, 2013 10:06 pm
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.
Re: [git] game freezes after engaging adventurere party
Posted: Wed Jun 19, 2013 8:25 am
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.
Re: [git] game freezes after engaging adventurere party
Posted: Wed Jun 19, 2013 9:57 am
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).
Re: [git] game freezes after engaging adventurere party
Posted: Wed Jun 19, 2013 10:49 am
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.
Re: [git] game freezes after engaging adventurere party
Posted: Wed Jun 19, 2013 11:34 am
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

Re: [git] game freezes after engaging adventurere party
Posted: Wed Jun 19, 2013 6:01 pm
by darkgod
I'll need the te4_log.txt file then (oh and do run wioth the flush log option please)
Re: [git] game freezes after engaging adventurere party
Posted: Thu Jun 20, 2013 8:38 am
by MisiuPysiu
Here is the file,
cheers

Re: [git] game freezes after engaging adventurere party
Posted: Thu Jun 20, 2013 1:29 pm
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).
Re: [git] game freezes after engaging adventurere party
Posted: Thu Jun 20, 2013 2:00 pm
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.
Re: [git] game freezes after engaging adventurere party
Posted: Thu Jun 20, 2013 3:11 pm
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.
Re: [git] game freezes after engaging adventurere party
Posted: Thu Jun 20, 2013 3:38 pm
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:
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.
Re: [git] game freezes after engaging adventurere party
Posted: Thu Jun 20, 2013 4:09 pm
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:
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.
Re: [git] game freezes after engaging adventurere party
Posted: Fri Jun 21, 2013 12:29 am
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)