Make the creation of custom building foundation shapes possible.

Bug #894858 reported by pd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ares
Fix Released
Wishlist
DCoder DCoder

Bug Description

Using
Foundation=Custom
on a BuildingType's art section will enable the following settings:

FoundationX=(integer) ;X size
FoundationY=(integer) ;Y size

;cells used by the foundation
Foundation0=(relative cell coords)
Foundation1=(relative cell coords)
Foundation2=(relative cell coords)
;...

;cells outlining the foundation shape
FoundationOutline0=(relative cell coords)
FoundationOutline1=(relative cell coords)
FoundationOutline2=(relative cell coords)
;...

In order to create custom foundations easily, a special tool will be provided.

Tags: cell
Revision history for this message
DCoder DCoder (dcoder1337) wrote :

Flag names are different now, but resolving fixed.

Revision history for this message
Renegade (renegade) wrote :

Code exists but is untestable due to lack of either
a) documentation of how it works through code, or
b) an automated tool to generate said code.

This issue should be updated once either exists.

Revision history for this message
DCoder DCoder (dcoder1337) wrote :

Implemented as:
;artmd.ini
[BuildingType]
Foundation=Custom
Foundation.X = # ; width of the foundation's bounding rectangle, in cells
Foundation.Y = # ; height of the foundation's bounding rectangle, in cells
; for each cell you want to have occupied
Foundation.$ = x,y ; $ can be between 0 and (X * Y - 1) inclusive
;x and y stand for cell coordinates relative to the top corner cell

Revision history for this message
DCoder DCoder (dcoder1337) wrote :

Foundation Outline still needs to be added, d'oh.

Revision history for this message
Bug Importer (bug-importer) wrote :

Code related to this issue has just been checked in; DCoder wrote in revision 226:
Code for Foundation Outline support, completing issue 178. Also a fix for the problem of upgrades not counting as SW AuxBuilding, just because.
Related to issue 178 .
SVN: http://svn.renegadeprojects.com/listing.php?repname=Ares&path=%2Ftrunk%2F&rev=226&sc=1

Revision history for this message
DCoder DCoder (dcoder1337) wrote :

Foundation Outlines:

;artmd.ini
[BuildingType]
FoundationOutline.Length = # ; number of cells in the outline
; for each cell you want to have occupied
FoundationOutline.$ = x,y ; $ can be between 0 and (X * Y - 1) inclusive

Revision history for this message
Renegade (renegade) wrote :
Download full text (5.3 KiB)

As a (stress-)test for the system and to check if the generator is compliant, could somebody test the following foundation?

[CATEMP]
Foundation = Custom
Foundation.X = 15
Foundation.Y = 15
Foundation.0 = 1,0
Foundation.1 = 10,0
Foundation.2 = 11,0
Foundation.3 = 12,0
Foundation.4 = 13,0
Foundation.5 = 14,0
Foundation.6 = 0,1
Foundation.7 = 1,1
Foundation.8 = 2,1
Foundation.9 = 6,1
Foundation.10 = 7,1
Foundation.11 = 8,1
Foundation.12 = 9,1
Foundation.13 = 10,1
Foundation.14 = 11,1
Foundation.15 = 12,1
Foundation.16 = 13,1
Foundation.17 = 1,2
Foundation.18 = 2,2
Foundation.19 = 5,2
Foundation.20 = 6,2
Foundation.21 = 7,2
Foundation.22 = 8,2
Foundation.23 = 9,2
Foundation.24 = 10,2
Foundation.25 = 11,2
Foundation.26 = 3,3
Foundation.27 = 4,3
Foundation.28 = 5,3
Foundation.29 = 6,3
Foundation.30 = 7,3
Foundation.31 = 8,3
Foundation.32 = 9,3
Foundation.33 = 10,3
Foundation.34 = 11,3
Foundation.35 = 3,4
Foundation.36 = 4,4
Foundation.37 = 5,4
Foundation.38 = 6,4
Foundation.39 = 7,4
Foundation.40 = 8,4
Foundation.41 = 9,4
Foundation.42 = 2,5
Foundation.43 = 3,5
Foundation.44 = 4,5
Foundation.45 = 5,5
Foundation.46 = 6,5
Foundation.47 = 7,5
Foundation.48 = 8,5
Foundation.49 = 1,6
Foundation.50 = 2,6
Foundation.51 = 3,6
Foundation.52 = 4,6
Foundation.53 = 5,6
Foundation.54 = 6,6
Foundation.55 = 7,6
Foundation.56 = 8,6
Foundation.57 = 9,6
Foundation.58 = 1,7
Foundation.59 = 2,7
Foundation.60 = 3,7
Foundation.61 = 4,7
Foundation.62 = 5,7
Foundation.63 = 6,7
Foundation.64 = 7,7
Foundation.65 = 8,7
Foundation.66 = 9,7
Foundation.67 = 1,8
Foundation.68 = 2,8
Foundation.69 = 3,8
Foundation.70 = 4,8
Foundation.71 = 5,8
Foundation.72 = 6,8
Foundation.73 = 7,8
Foundation.74 = 8,8
Foundation.75 = 9,8
Foundation.76 = 10,8
Foundation.77 = 1,9
Foundation.78 = 2,9
Foundation.79 = 3,9
Foundation.80 = 4,9
Foundation.81 = 6,9
Foundation.82 = 7,9
Foundation.83 = 8,9
Foundation.84 = 9,9
Foundation.85 = 10,9
Foundation.86 = 11,9
Foundation.87 = 0,10
Foundation.88 = 1,10
Foundation.89 = 2,10
Foundation.90 = 3,10
Foundation.91 = 8,10
Foundation.92 = 9,10
Foundation.93 = 10,10
Foundation.94 = 11,10
Foundation.95 = 0,11
Foundation.96 = 1,11
Foundation.97 = 2,11
Foundation.98 = 3,11
Foundation.99 = 9,11
Foundation.100 = 10,11
Foundation.101 = 11,11
Foundation.102 = 12,11
Foundation.103 = 0,12
Foundation.104 = 1,12
Foundation.105 = 11,12
Foundation.106 = 12,12
Foundation.107 = 0,13
Foundation.108 = 1,13
Foundation.109 = 13,13
Foundation.110 = 0,14
FoundationOutline.Length = 94
FoundationOutline.0 = 0,-1
FoundationOutline.1 = 1,-1
FoundationOutline.2 = 2,-1
FoundationOutline.3 = 9,-1
FoundationOutline.4 = 10,-1
FoundationOutline.5 = 11,-1
FoundationOutline.6 = 12,-1
FoundationOutline.7 = 13,-1
FoundationOutline.8 = 14,-1
FoundationOutline.9 = 15,-1
FoundationOutline.10 = -1,0
FoundationOutline.11 = 0,0
FoundationOutline.12 = 2,0
FoundationOutline.13 = 3,0
FoundationOutline.14 = 5,0
FoundationOutline.15 = 6,0
FoundationOutline.16 = 7,0
FoundationOutline.17 = 8,0
FoundationOutline.18 = 9,0
FoundationOutline.19 = 15,0
FoundationOutline.20 = -1...

Read more...

Revision history for this message
Renegade (renegade) wrote :

D tested the foundation above and it appears ingame correctly: http://img137.imageshack.us/i/catemp.png/

I am thus closing this issue.

Revision history for this message
Bug Importer (bug-importer) wrote :

Code related to this issue has just been checked in; DCoder wrote in revision 406:
Fixed issue #747 - surface allocation flags are no longer interpreted backwards and do not lag by default.

Also corrected several delete/free/delete[] issues that probably need to be retested now:
Related to issue #753
Related to issue #664
Related to issue #462
Related to issue #351
Related to issue #178
Related to issue #177
Related to issue #176
Related to issue 747 .
SVN: http://svn.renegadeprojects.com/listing.php?repname=Ares&path=%2Ftrunk%2F&rev=406&sc=1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.