Search found 32 matches

by lifanov
Thu Dec 26, 2019 3:08 am
Forum: Bugs Archive
Topic: [1.6.5] [patch] game doesn't start without luajit2
Replies: 3
Views: 922

Re: [1.6.5] [patch] game doesn't start without luajit2

After playing for a few more hours, my possessor is still unplayable. The game doesn't crash or corrupt the save file, but it becomes very slow without saving and exiting every map.

However, my high-level technomancer is now snappy and not crashing anymore!
by lifanov
Wed Dec 25, 2019 10:14 pm
Forum: Bugs Archive
Topic: [1.6.5] [patch] game doesn't start without luajit2
Replies: 3
Views: 922

Re: [1.6.5] [patch] game doesn't start without luajit2

There are a lot of other issues with trying to use vanilla lua. Instead, please look at an update to bundled luajit2 to the latest release from OpenResty's branch. This seems to be the most active branch since 2017 and introduces (optional) support for 64 bit pointers, arm64, and mips64. The patch i...
by lifanov
Wed Dec 25, 2019 7:24 pm
Forum: Bugs Archive
Topic: [1.6.5] [patch] game doesn't start without luajit2
Replies: 3
Views: 922

[1.6.5] [patch] game doesn't start without luajit2

Edit: there are a lot more issues with trying to use portable Lua than this. This used to work before, but the build option should probably just be removed now. See below post that updates luajit2 instead. With all official addons (orcs, cults, ashes, possessors), the game runs against the memory l...
by lifanov
Thu Dec 12, 2019 2:31 pm
Forum: Bugs Archive
Topic: (1.6) Possessor Memory Leak Results in Lag and Deleted Save
Replies: 6
Views: 2328

Re: (1.6) Possessor Memory Leak Results in Lag and Deleted S

I can reproduce this with 1.6.4.
I have a yeek possessor that can't get past ritch tunnels.
The error is triggered as soon as I try to possess the boss there.
I have used Psychic Crush.
by lifanov
Fri Mar 03, 2017 7:15 pm
Forum: Development
Topic: small getself.c improvements for FreeBSD
Replies: 2
Views: 2249

Re: small getself.c improvements for FreeBSD

I release copyright for this change to DarkGod to license as he wishes.
by lifanov
Sat Feb 25, 2017 3:37 pm
Forum: Development
Topic: small getself.c improvements for FreeBSD
Replies: 2
Views: 2249

small getself.c improvements for FreeBSD

Turns out FreeBSD can also use sysconf() :D Also, don't rely on /proc being mounted: many users don't mount proc. diff --git a/src/getself.c b/src/getself.c index 88e3ab4d5..a6933b7e0 100644 --- a/src/getself.c +++ b/src/getself.c @@ -42,24 +42,25 @@ int get_number_cpus() #elif defined(SELFEXE_BSD) ...
by lifanov
Wed Oct 26, 2016 3:05 pm
Forum: Development
Topic: physfs.c fix clang error
Replies: 1
Views: 1588

Re: physfs.c fix clang error

I see it landed. Thanks!
by lifanov
Tue Oct 25, 2016 3:54 pm
Forum: Development
Topic: physfs.c fix clang error
Replies: 1
Views: 1588

physfs.c fix clang error

Hi! In physfs.c, a void function is returning an integer. Please fix: --- src/physfs.c.orig 2016-10-25 15:49:32 UTC +++ src/physfs.c @@ -331,7 +331,6 @@ void physfs_reset_dir_allowed(lua_State } nb_allowed_dirs = 0; can_set_allowed_dirs = TRUE; - return 0; } static int lua_fs_done_dir_allowed(lua_St...
by lifanov
Mon Jan 05, 2015 11:16 pm
Forum: Bugs Archive
Topic: [1.2.3] FreeBSD 9.3, tome4 fails at startup
Replies: 1
Views: 903

Re: [1.2.3] FreeBSD 9.3, tome4 fails at startup

Sorry, I don't log in to te4.org forums very often. The best place to report FreeBSD port problems is FreeBSD Bugzilla: https://bugs.freebsd.org/bugzilla/ I check Bugzilla for ports I maintain continuously. Are you still having problems with tome4-1.2.5? I use the port myself, admittedly on 10.0, 10...
by lifanov
Mon Jan 05, 2015 11:09 pm
Forum: Development
Topic: recent core_lua.c changes: fix build with clang 3.5
Replies: 1
Views: 1569

recent core_lua.c changes: fix build with clang 3.5

This fixes a fatal warning with clang 3.5 (-Wreturn-value) by marking one function void and giving a return value to another non-void function. diff --git a/src/core_lua.c b/src/core_lua.c index cdb0255..90811da 100644 --- a/src/core_lua.c +++ b/src/core_lua.c @@ -3098,7 +3098,7 @@ static int displa...
by lifanov
Tue May 06, 2014 9:35 pm
Forum: Development
Topic: doing arithmetic on tables
Replies: 2
Views: 1349

Re: doing arithmetic on tables

I can confirm that this is fixed for me.
by lifanov
Mon May 05, 2014 9:38 pm
Forum: Development
Topic: doing arithmetic on tables
Replies: 2
Views: 1349

doing arithmetic on tables

v can be a table here. This silences the error (tonumber of nil is nil and tonumber of not a number is nil): diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua index a47492e..0d6d26a 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lu...
by lifanov
Sun May 04, 2014 11:33 pm
Forum: Development
Topic: autouse talents without no_energy: unplayable
Replies: 2
Views: 1576

Re: autouse talents without no_energy: unplayable

You are right! This works for me.
by lifanov
Sun May 04, 2014 1:12 am
Forum: Development
Topic: autouse talents without no_energy: unplayable
Replies: 2
Views: 1576

autouse talents without no_energy: unplayable

I reported this in-game once, the only time the error didn't loop: an < bn blows up when these are null. Check for null before doing a comparison. Deleting this condition restores previous functionality, which works okay. diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Play...
by lifanov
Mon Apr 28, 2014 11:08 pm
Forum: Development
Topic: fix compiler warnings, round 5
Replies: 0
Views: 1036

fix compiler warnings, round 5

Two more: don't redefine NDEBUG when NDEBUG=1 (config=release build) and use tmpfile instead of tmpnam: Warning: Between the time the pathname is constructed and the file is created another process might have created a file with the same name using tmpnam, leading to a possible security hole. The im...