Structures by design

For code related discussions and questions
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Structures by design

Post by Reg312 »

Shadow Wolf TJC wrote:Guys, I don't think that it'd be fair if the opponent cannot see what weapon is being used on that bunker, if the weapon was placed inside the bunker or made invisible, until it's too late. :stare:
i meant inside bunker but with visible parts of weapon.. hm seems its impossible :(
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Structures by design

Post by Reg312 »

bunkers with invisible machineguns was implemented
- aviable only for machineguns, except Twin Assault Gun
- have a bit better armor than another bunker
- both bunker types become aviable by 1 research item (you need research bunker to get it)
- removed all dunkers from research (leave them aviable only for AI)
Attachments
wz2100-20120331_014219-Sk-Rush.png
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Re: Structures by design

Post by Goth Zagog-Thou »

Love what I'm seeing here folks. Awesome work! :D
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: Structures by design

Post by aubergine »

I am also drooling over this! I hope I get to put MRAs on towers at long last!
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: Structures by design

Post by Giani »

MRAs on towers might look weird...
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Structures by design

Post by Reg312 »

aubergine wrote:I am also drooling over this! I hope I get to put MRAs on towers at long last!
sorry, weapons enabled on towers: light and medium direct weapon, while MRA classified as medium indirect weapon
(open for suggestions on weapons classification)

also, you will be able to mod rules.js and change weapons restrictions
Attachments
wz2100-20120331_030112-Sk-Rush.png
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: Structures by design

Post by Giani »

A bunker buster on a tower looks great :) But it would be useless because it is good against defences.
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: Structures by design

Post by aubergine »

Hrm, that's a shame because for me MRAs would be much better on a tower or hardpoint :s
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland
Contact:

Re: Structures by design

Post by Emdek »

Reg312 wrote:can you please make bunker model pie with connectors inside model?
Nope, I'm not an artist. :-P
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Structures by design

Post by Berg »

blpilbox.pie is the bunker pie.
Screenshot-blpilbox - WMIT.png
If this is the model you mean by bunker then it already uses connectors to add another or to make the connector inside add this to bottom of file.
This adds a connector at ground level in centre of model.

Code: Select all

CONNECTORS 2
	0 0 0
	0 0 27
This is the original file it has a connector.

Code: Select all

PIE 2
TYPE 10200
TEXTURE 0 page-17-droid-weapons.png 256 256
LEVELS 1
LEVEL 1
POINTS 17 
	-16 23 -7 
	17 23 -7 
	17 23 11 
	-16 23 11 
	40 0 0 
	20 0 35 
	20 21 35 
	40 21 0 
	-20 0 35 
	-20 21 35 
	-40 0 0 
	-40 21 0 
	-20 0 -35 
	-20 21 -35 
	20 0 -35 
	20 21 -35 
	0 21 0
POLYGONS 20
	200 3 3 2 1 0 239 13 239 13 256
	200 3 3 1 0 0 239 13 256 0 256
	200 3 7 6 5 16 193 59 193 59 208
	200 3 7 5 4 16 193 59 208 16 208
	200 3 6 9 8 59 193 16 193 16 208
	200 3 6 8 5 59 193 16 208 59 208
	200 3 9 11 10 59 193 16 193 16 208
	200 3 9 10 8 59 193 16 208 59 208
	200 3 11 13 12 59 193 16 193 16 208
	200 3 11 12 10 59 193 16 208 59 208
	200 3 13 15 14 16 193 59 193 59 208
	200 3 13 14 12 16 193 59 208 16 208
	200 3 15 7 4 16 193 59 193 59 208
	200 3 15 4 14 16 193 59 208 16 208
	200 3 6 7 15 81 180 87 193 81 207
	200 3 6 15 16 81 180 81 207 74 193
	200 3 11 9 6 61 193 68 180 81 180
	200 3 11 6 16 61 193 81 180 74 193
	200 3 15 13 11 81 207 68 207 61 193
	200 3 15 11 16 81 207 61 193 74 193
CONNECTORS 1
	0 0 27
If you want this default model to have the one connector and have it inside the model change the last data entry 27 to be in the middle of the model height to 11 the model is 23 pixels at its highest so that is half its height.
If you want to have the default MG I suggest adding a extra connector as just changing the one there will likely place the default MG bellow 0 (ground level) so you will have to use the old for default mg and add a new one to hide the turrets inside.

The model blpilbox.pie file is located warzone_root/data/base/structs/.
I hope this information is helpfull.
Regards Berg
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Structures by design

Post by Reg312 »

If anyone want help with testing...
here is Structure Design mod (alternative Warzone version based on latest master version)
all is simple in this mod (only 2 components for each structure)

Windows version
prerequisites: installed warzone beta 7 on your PC
1) Install Microsoft Visual C++ 2010 Redistributable Package
http://www.microsoft.com/download/en/co ... px?id=5555
2) download archive
http://www.mediafire.com/file/ckeamedti ... _beta1.zip
3) unpack to any empty folder
4) Install fonts from folder \Fonts in warzone unpacked folder
- onen file DejaVuSans.ttf and click "Install"
- open file DejaVuSans-Bold.ttf and click "install"
5) run Warzone2100.exe
(dont place unpacked files into warzone beta 7 folder)

note1: i dont provide installer (i dont know how make warzone installer)
note2: warzone errors with be shown in stderr.txt in same folder with .exe
note3: maps & stuff for this version - see folder "Warzone 2100 master" in "My Documents"
note4: if you have problems, also you need run it under administrative rights
No! Never run ANY program with admin rights when not needed, and this is NOT NEEDED! --Staff

Linux version
git clone git://github.com/crabster/warzone2100.git
git checkout strd2
./autogen.sh && ./configure && make
./src/warzone2100

current version restrictions:
1) No savegames (savegame won't load if you used designed structures)
2) AI dont use designed structures
3) T2 and T3 modes still contains old defenses
4) bugs bugs bugs
5) translation issues
*i did not tested my version with translation (please use English version!)
*some labes was added and never traslated (and i still dont know how translation works in wz)
6) To play in network both players should have same version
git version are updated every day, so please check version codes in warzone start screen

if you found bug or if you disagreed with something in this mod, please report here
if you like all this, also please report here (mature developers needs in community activity)
Last edited by Reg312 on 03 Apr 2012, 07:57, edited 12 times in total.
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Re: Structures by design

Post by Goth Zagog-Thou »

It's not working for me. I unpacked to my desktop, then into my beta 7 folder in /Program Files .
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: Structures by design

Post by Giani »

I downloaded the version for windows and...
what happened next wasnt good...
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: Structures by design

Post by Giani »

And the link for downloading the mod for windows downloaded wz...
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Structures by design

Post by Reg312 »

Goth Zagog-Thou wrote:It's not working for me. I unpacked to my desktop, then into my beta 7 folder in /Program Files .
you dont need put upacked filed into beta7 folder (it may cause errors because in beta7 you have another data files)
all you need is unpack to new folder and run.
Giani wrote:And the link for downloading the mod for windows downloaded wz...
yes, because its "alternative Warzone version based on latest master version"
Giani wrote:I downloaded the version for windows and...
what happened next wasnt good...
and what heppened next..? did you tried run "warzone2100.exe" in upacked folder?
if warzone crashed, can you send "stderr.txt" file

if you have problems with windows version, also you need run it under administrative rights
No! Never run ANY program with admin rights when not needed, and this is NOT NEEDED! --Staff

[update] Added more steps in windows installation
1) Install Microsoft Visual C++ 2010 Redistributable Package
http://www.microsoft.com/download/en/co ... px?id=5555
4) Install fonts from folder \Fonts in warzone unpacked folder
- onen file DejaVuSans.ttf and click "Install"
- open file DejaVuSans-Bold.ttf and click "install"


sorry, i unable to test windows version on clean machine, so is possible i forgot something else
Last edited by Staff on 03 Apr 2012, 05:02, edited 2 times in total.
Reason: Never run any programs with admin rights, that don't need it, and Warzone don't need it!
Post Reply