Giter Club home page Giter Club logo

Comments (12)

Sagara777Sousuke avatar Sagara777Sousuke commented on August 12, 2024

hello

from quakespasm.

sezero avatar sezero commented on August 12, 2024

I have a hard time understanding the issue, whatever that is. @ericwa ?

from quakespasm.

Sagara777Sousuke avatar Sagara777Sousuke commented on August 12, 2024

Мне трудно понять проблему, в чем бы она ни заключалась. @ericwa ?

I apologize for the crooked English and the incorrectly posed question.
I don't know him very well, I use Google translator.
native Russian language.

I have a problem, I am recreating the World Trade Center from the blueprints and ran into restrictions.

  1. Hunk_Alloc: Failed 1036704 bytes
    Register through the label
    Bug fixes
    Allocating memory for resources.
    -heapsize 1347903

  2. AllocBlock: full
    then it overflows completely there is a limit, you can increase it.?

3.Limit on the number of primitives in the game and other restrictions?

my mod page
https://www.moddb.com/mods/world-trade-center

from quakespasm.

Sagara777Sousuke avatar Sagara777Sousuke commented on August 12, 2024

Мне трудно понять проблему, в чем бы она ни заключалась. @ericwa ?

  1. Host_Error: Mod_Leafs: 130539 Exceds Limit of 100000.

from quakespasm.

QUINTIX avatar QUINTIX commented on August 12, 2024
  1. Host_Error: Mod_Leafs: 130539 Exceds Limit of 100000.
if (count > 32767)
  Host_Error ("Mod_LoadLeafs: %i leafs exceeds limit of 32767.\n", count);

is what's in gl_model.c:1542 if you want to muck around with it

say add

#DEFINE MAX_LEAVES 0x200000

after the #include
then change those lines to

if (count > MAX_LEAVES) {
  Host_Error ("Mod_LoadLeafs: %i leafs exceeds limit of %i.\n", count, MAX_LEAVES);
}

but I'd advise going back to the drawing board in your level editor of choice to see if you can reduce the number of binary space partition branches before resorting to something as extreme as multiplying the maximum number of visibility leaves 64 fold.

Edit: dawns on me that leaf indices might be 16 bit integers. In which case this might not work. Other sourceports might support 32 bit leaf indices. I'll need to investigate.

Further Edit: bsp2, which is supported, has no such limit on visibility leaves. Might want to export to that instead. Still would advise going through and doing an optimization pass, adding hint surfaces as needed.

from quakespasm.

Sagara777Sousuke avatar Sagara777Sousuke commented on August 12, 2024
  1. Ошибка хоста: Mod_Leafs: 130539 Превышает лимит в 100000.
если (количество > >32767)
 Ошибка хоста ("Mod_LoadLeafs: %i листьев превышает предел 32767.\n", количество);

это то, что есть в gl_model.c:1542, если вы хотите повозиться с этим

скажи добавить

#ОПРЕДЕЛИТЬ МАКСИМАЛЬНЫЕ ЗНАЧЕНИЯ 0x200000

#include после этого измените эти строки на

если (количество > MAX_LEAVES) {
 Host_Error ("Mod_LoadLeafs: %i листьев превышает предел %i.\n", количество, MAX_LEAVES);
}

но я бы посоветовал вернуться к чертежной доске в выбранном вами редакторе уровней, чтобы посмотреть, сможете ли вы уменьшить количество ветвей раздела двоичного пространства, прежде чем прибегать к чему-то столь экстремальному, как умножение максимального количества видимых листьев в 64 раза.

Правка: до меня доходит, что листовые индексы могут быть 16-битными целыми числами. В этом случае это может не сработать. Другие исходные порты могут поддерживать 32-разрядные конечные индексы. Мне нужно будет провести расследование.

Дальнейшее редактирование: bsp2, который поддерживается, не имеет такого ограничения на видимость листьев. Возможно, вместо этого захочется экспортировать в это. Тем не менее, я бы посоветовал пройти и выполнить оптимизацию, добавив поверхности подсказок по мере необходимости.

Thank you very much for the answer.
I tried to optimize, but I have such a large project that it won't help without increasing the limits.

I already have been using it when compiling BSP2

is there a console command that can increase the leaf limit on the map?

from quakespasm.

QUINTIX avatar QUINTIX commented on August 12, 2024

is there a console command that can increase the leaf limit on the map?

Does not look like it. Furthermore, I'm actually having trouble finding a leaf limit of 100000 anywhere. Only one explicitly given I can find is 32767, which should only apply to BSP1.

from quakespasm.

Sagara777Sousuke avatar Sagara777Sousuke commented on August 12, 2024

есть ли консольная команда, которая может увеличить лимит листа на карте?

Не похоже на это. Кроме того, у меня на самом деле возникли проблемы с поиском лимита в 100000 в любом месте. Только один явно заданный, который я могу найти, - 32767, который должен применяться только к BSP1.

Thank you very much for your help.

I climbed optimized but now I run out of memory or something like that.
is there a console command to increase the limit of this parameter?

Hunk_Alloc: Failed 68166160 bytes

Register through the label
Bug fixes
Allocating memory for resources.
-heapsize 1347903

from quakespasm.

QUINTIX avatar QUINTIX commented on August 12, 2024

There is no console command that I know of to adjust the heap size while the game is running. Fortunately, there is a command line option to have more memory available right on startup. Namely -heapsize [kilobytes]

Try

-heapsize 262144 

from a terminal, in addition to the command line options to specify your map. That'll give you 256 megabytes.

from quakespasm.

Sagara777Sousuke avatar Sagara777Sousuke commented on August 12, 2024

Насколько мне известно, нет консольной команды для настройки размера кучи во время работы игры. К счастью, есть опция командной строки, чтобы сразу при запуске было доступно больше памяти. Именно -heapsize [kilobytes]

Попробуй

-heapsize 262144 

с терминала, в дополнение к параметрам командной строки, чтобы указать свою карту. Это даст вам 256 мегабайт.

did not help inserted the command into the shortcut of the game.
Where is the command line in the quake?

from quakespasm.

Sagara777Sousuke avatar Sagara777Sousuke commented on August 12, 2024

Successful compilation logs.
before optimization and after optimization.
if more goes beyond the limits of the allocated memory that I could not apply through the shortcut of the game.

floor_2021_11_07_v106.log
floor_2021_11_07_v116.log

from quakespasm.

Sagara777Sousuke avatar Sagara777Sousuke commented on August 12, 2024

Насколько мне известно, нет консольной команды для настройки размера кучи во время работы игры. К счастью, есть опция командной строки, чтобы сразу при запуске было доступно больше памяти. Именно -heapsize [kilobytes]

Попробуй

-heapsize 262144 

с терминала, в дополнение к параметрам командной строки, чтобы указать свою карту. Это даст вам 256 мегабайт.

I will add that I am using Arcane Dimensions mod.
on top of the Quakespasm engine.
Due to the fact that in the usual Quakespasm the map is limited to about 50 floors and then the map is cut off.
and in Arcane Dimensions there is no such limitation.

from quakespasm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.