News:

Come Chat with us live! Learn how HERE!

Main Menu

!layout command, a server-side modification (version 4)

Started by Risujin, December 16, 2006, 04:46:25 AM

next_ghost

Quote from: vcxzetyou can place more than 1 reactor/OM by editing the file
you can make bases that costs more build pts
(ie set build points to 300 build the base save and it will load for max 100 bps but you need to decon 208 to build an acid tube somewhere else)

A quick fix is obvious: Each time you place something, check if the game allows it (using G_itemFits(), returns IBE_NONE if it's allowed, see g_buildable.c:G_validateBuild() for example). Ignore the test to keep fun for cheats enabled games.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Risujin

Quote from: next_ghost
Quote from: vcxzetyou can place more than 1 reactor/OM by editing the file
you can make bases that costs more build pts
(ie set build points to 300 build the base save and it will load for max 100 bps but you need to decon 208 to build an acid tube somewhere else)

A quick fix is obvious: Each time you place something, check if the game allows it (using G_itemFits(), returns IBE_NONE if it's allowed, see g_buildable.c:G_validateBuild() for example). Ignore the test to keep fun for cheats enabled games.
If you edit the file manually, you're definitely looking for a customized game. Its not a bug, its a feature. :)

next_ghost

Quote from: RisujinIf you edit the file manually, you're definitely looking for a customized game. Its not a bug, its a feature. :)

I just think nobody should be able to bypass game restrictions without enabling cheats.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Paradox

This will go on sst as soon as i can get it mixed with avengers qvm.

∧OMG ENTROPY∧


Paradox

Good note, this has gone into a revision, and since avenger is using revisions, it will be in the next release hopefully.

Also, where are the files it creates stored?

∧OMG ENTROPY∧

Risujin

Quote from: ParadoxAlso, where are the files it creates stored?
!layout stores files in the mod folder (or base if youre not running a custom fs_game). Look for mapname-layouts.dat files.

Mangler

Yeah, I ran into this the other day. Interesting idea!

Is this going to be a part of the main Balance mod?
(eventually?)

Also was my 'Battery-Backup' idea ever implimented?
(Turrets and Armouries keep working for X seconds without a Reactor)

Risujin

Quote from: ManglerIs this going to be a part of the main Balance mod?
(eventually?)
Has been since rev 12. The latest SVN now has tjw's layout patch in it.

QuoteAlso was my 'Battery-Backup' idea ever implimented?
(Turrets and Armouries keep working for X seconds without a Reactor)
Still on the drawing board. :)

Carteludo

can anyone help me, i got a little useful infor from this blog
but i have tried to operate adminrights on my server but im not able to get it set up, iv treid gettin all the passwords goin and downloaded almost eveyrhitng on tjw's but im probly not doing eveything in the correct sequence.
can any one help me??

Vector_Matt

Quote from: Carteludocan anyone help me, i got a little useful infor from this blog
but i have tried to operate adminrights on my server but im not able to get it set up, iv treid gettin all the passwords goin and downloaded almost eveyrhitng on tjw's but im probly not doing eveything in the correct sequence.
can any one help me??
Wrong thread! And you already posted a separate topic about this. And again this question has nothing to do with the current discussion, so, Wrong thread!

Stof

Question!

That layout patch seems fun and all that but of very limited use. But could you patch it somehow to allow servers to add in runtime location entities to the maps that are missing them? THAT would be very useful ;)
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

Risujin

Quote from: Stofruntime location entities
You need to try it, the patch makes for some very fun layouts (play on YakNet Balance for example). Now, whats a runtime location entity? :o

Vector Matt: stop policing the forum and finish that model! :)

vcxzet

risujin stop policing the forum polices and finish that mod

Stof

Quote from: Risujin
Quote from: Stofruntime location entities
You need to try it, the patch makes for some very fun layouts (play on YakNet Balance for example). Now, whats a runtime location entity? :o

Vector Matt: stop policing the forum and finish that model! :)
The entities that Tremulous and Quake 3 supports out of the box but which no standard map comes with.

They allow things like :
"[H]Stof (Window Room) : OM is here!" They are the entities which tells the engine I'm in the "Window Room" Try Gloom 2 ( Jex version ) for example to see what I mean.
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

kevlarman

i'm not sure there would be much use for that, all the default maps have been recompiled with location entities in them, and with the recent jump in work on tremulous, it looks like we might not have to wait very long for the real thing.
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Stof

Yeah, well it has some advantages too :
- no need to wait. Even though the work has picked up, we still have no idea of when it'll be available :)
- default maps have been fixed, what about all the non default maps that are missing the info? Will they be fixed too?
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

Risujin

Quote from: vcxzetrisujin stop policing the forum polices and finish that mod
Oh snap!

Rawr

res, one host i know, rack, would like to try this on his server, but he wants to see the source first. Possible?

Risujin

Quote from: bazuka_poores, one host i know, rack, would like to try this on his server, but he wants to see the source first. Possible?
There are not one, but two links to the patch in the post. :wink:

Paradox

Isnt there something like !layout show or something that shows the built buildables. What i think he means with the location data is a cell in this that shows (if avalible) the location of the building, in addition to the coordinates.

∧OMG ENTROPY∧

Risujin

Theres no easy way to show the buildables except by flying around and actually looking at where they are. If you're feeling brave, you can look at the layout file which has all the coordinate data.

robug

Would it be possible to tone back the shove or dretch punt in the next rev.  It is very strong.  As a dretch with tyrants and pouncing goons I find that I am often shoved halfway across the map and on one occation even completely through a human base full of tesla only to land on the other side unharmed.

Risujin

Quote from: robugWould it be possible to tone back the shove or dretch punt in the next rev.  It is very strong.  As a dretch with tyrants and pouncing goons I find that I am often shoved halfway across the map and on one occation even completely through a human base full of tesla only to land on the other side unharmed.
Thats a bug with "Balance Lite". I've fixed it but havent released yet. ... also, this is the !layout patch thread, not the "Lite" thread. :)

Rawr

wasnt quite sure where to put this. but the balance lite you have res, did not work on Rack's server. (Spanish Trem). He got a glitch that basically set it to all default settings with out tjws mod. IE no dretch punt, no tk messages etc etc. There was /share however. He did not like this, then when he took it off, it has the no score error for 2 games.

Paradox

What i mean is some command like !layout list, that at least gave the name, coordinates of a buildable, and possibly the health and location data.

Also, why no !layout decon or !layout undo.

∧OMG ENTROPY∧

Risujin

Quote from: ParadoxAlso, why no !layout decon or !layout undo.
Normal deconstruction works ... even from spectator mode apparently. Undo would be ... complicated.

Greudin

Any admins to share appreciated layouts or I ll do all on my own ? ;) ;)

My 1st layout :
http://maps.bricosoft.com/layouts/

Default locations but a bit packed bases.

vcxzet

Quote from: Risujin
Quote from: ParadoxAlso, why no !layout decon or !layout undo.
Normal deconstruction works ... even from spectator mode apparently. Undo would be ... complicated.
noo need for undo
save the last good one
if you didnt like something reload the last

Paradox

Dunno if i mentioned this earlier, but a !layout list would be good. It would list all the buildings, their coords, and if available, location data.

Also, a cvar that would be useful, if possible to code, would be g_layoutAutoSave. It could be a duration in MS, so every X amount of time, it automatically saved the layout, without printing a notice. You could add another cvar g_layoutAutoSaveName, and that could specify the saved name, so you could set it to auto, and typing !layout load auto would load the most recent autosaved layout.

∧OMG ENTROPY∧