Author Topic: max polys?  (Read 4088 times)

0 Members and 1 Guest are viewing this topic.

Offline Doc

  • Soldier
  • **
  • Posts: 128
    • Soldat Files Directory
max polys?
« on: January 20, 2009, 03:44:40 pm »
Does anyone know if there is a fixed limit to polygons in a map?

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: max polys?
« Reply #1 on: January 20, 2009, 03:48:11 pm »
5000 ones. then soldat crashes.

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: max polys?
« Reply #2 on: January 20, 2009, 06:55:55 pm »
5000 ones. then soldat crashes.
Wasn't it 10k?

I just remember seeing in the mapmaker source a constant called MAXPOLYS2 or something that was set to 10k.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: max polys?
« Reply #3 on: January 20, 2009, 10:31:57 pm »
5000 ones. then soldat crashes.
Wasn't it 10k?

I just remember seeing in the mapmaker source a constant called MAXPOLYS2 or something that was set to 10k.
For map stats, polyworks always shows the number of polygons as number/5000. So, I'd assume it's 5000.
There are other worlds than these

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: max polys?
« Reply #4 on: January 21, 2009, 01:06:22 am »
It's currently 5000 in the client, the map maker source is slightly incorrect.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: max polys?
« Reply #5 on: January 21, 2009, 01:07:55 am »
It's currently 5000 in the client, the map maker source is slightly incorrect.
In future verisons of Soldat, are you guys planning on increasing / decreasing this limit?
There are other worlds than these

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: max polys?
« Reply #6 on: January 21, 2009, 02:02:07 am »
Map format change.... Not anytime soon

Offline scarface09

  • Veteran
  • *****
  • Posts: 1153
  • Arsenal Supporter For Life
Re: max polys?
« Reply #7 on: January 21, 2009, 08:13:37 am »
What's the map format going to be when it's changed?
Football is the other face of the world. If you don't like it, then you can get the hell out!

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: max polys?
« Reply #8 on: January 21, 2009, 08:58:14 am »
What's the map format going to be when it's changed?
No one knows yet...and even if the developers had a few plans, they probably wouldn't disclose them until it was really ready to be released.
There are other worlds than these

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: max polys?
« Reply #9 on: January 21, 2009, 04:26:44 pm »
If it was changed, it most likely would be changed to a more flexible format so that changes could be added without breaking compatability; ie: floating sections:

Code: [Select]
[header: map format version]
[section header: size of section]
[section header: id]
[section data]
[section header: size of section]
[section header: id]
[section data]
...
[section header: size of section]
[section header: id]
[section data]

Where a section's data could be broken down, for example, as:

Code: [Select]
[polygon header]
[polygon data]

In this way, additions could be made without breaking compatability with parsers; sections that the parser doesn't understand can be skipped.

Note that this isn't currently planned, and if implemented wouldn't be seen until sometime around 2012 xP
« Last Edit: January 21, 2009, 07:46:18 pm by chrisgbk »

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: max polys?
« Reply #10 on: January 21, 2009, 04:30:38 pm »
Note that this isn't currently planned, and if implemented wouldn't be seen until sometime around 2012 xP
Sorry, sort of offtopic but still relatively relevant: do you think Soldat will still be under active development in 2012? It'd reach it's ten year birthday then; I think Soldat's ten year anniversary would be awesome.
There are other worlds than these

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: max polys?
« Reply #11 on: January 21, 2009, 04:35:32 pm »
Sorry, sort of offtopic but still relatively relevant: do you think Soldat will still be under active development in 2012? It'd reach it's ten year birthday then; I think Soldat's ten year anniversary would be awesome.

I'm not sure if "active" would be the best word to describe it by then, but would probably still be maintained. It definitely won't be abandoned.


As a small treat I whipped up the following code tidbit to show what maploading COULD be like in the future:
Code: [Select]
function testloadmap(filename: string);
var
  file: TFileStream;
  header: TFSM_Header;
  sectionHeader: TFSM_SectionHeader;
  polygonHeader: TFSM_PolygonHeader;
  polygonData: array of TFSM_Polygon;
begin
  // Open file for reading nicely
  file := TFileStream.Create(filename, fmOpenRead or fmShareDenyWrite);

  // Read header
  file.Read(header, sizeOf(TFSM_Header));

  // sanity check
  if header.magic <> FSM_Magic then
    raise EFSM_FileFormatException.Create;

  // Parse entire file
  while (file.position < file.size) do begin

    // Read section header
    file.Read(sectionHeader, sizeOf(TFSM_SectionHeader));

    // Check what section we're working with
    case sectionHeader.ID of
      FSM_Polygons: begin

        // Read section header
        file.Read(polygonHeader, sizeOf(TFSM_PolygonHeader));

        // Section sanity check
        if (sectionHeader.size - sizeOf(TFSM_PolygonHeader)) <> (polygonHeader.count * sizeOf(TFSM_Polygon)) then
          raise EFSM_FileSectionSizeException.Create;

        // Read section data
        setLength(polygonData, polygonHeader.count);
        file.Read(polygonData[0], polygonHeader.count * sizeOf(TFSM_Polygons));
      end;
    else
      // Skip this section
      file.Seek(sectionHeader.size, soFromCurrent);
    end;
  end;
end;

Those of you who have been here for a while might remember the Ouden project; this is the same format I suggested for the project back when it was alive. (circa 2005 or so)
« Last Edit: January 21, 2009, 07:43:07 pm by chrisgbk »