Last visit was: Thu Nov 21, 2024 10:57 pm It is currently Thu Nov 21, 2024 10:57 pm

All times are UTC




 [ 44 posts ]  Go to page 1, 2, 3, 4, 5  Next
 Contribute: add items, monsters and more to existing maps 
Author Message
Admin

Joined: Sun Feb 17, 2002 7:07 pm
Posts: 628
Post Contribute: add items, monsters and more to existing maps
Yesterday I have discussed on the webchat with ANDREI, Keeshu, xRDVx and some other peoples about the possibility to add more items to the existing maps. This feature is open since many years, and only Crusard or JudicatorOmega have used it so far and contributed to COOP or DIE for Quake2.

How it works:
When you enter a map, a file with xmlrules is download from the coopordie website. You can look at some sample here :
xmlrules_map_startmap.xml
xmlrules_map_base1.xml
xmlrules_map_base2.xml

This file can contain some entities that are added to the current map. It could be items, monsters or more sophisticated features I could explain later.

To create a file like that, I use a map editor and I add the related entities. Then, I use a custom tool for creating the file with only added entities.

Don't be afraid, visiting a map with a map editor and adding items here and here is a lot more easy than creating a real map. It doesn't require mapping skills.

Here is the how to:
  • Download and install a map editor for Quake2 (like GtkRadiant)
  • Extract a map from the pak0.pak file in your quake2/baseq2 directory (use PakScape for opening pak files)
  • The maps are compiled on BSP format, so you need to convert them to MAP format (use Winbspc)
  • Now you can open the MAP file with the map editor
  • Navigate through the map and add some items
  • For each item added, add a field to its entity called "xmlrules" and set it to 1 for differentiate it from the other items.
  • Save your map and run the XmlRulesTool to produce a mapname.xml file with only the added entities.
  • Send me the file, I will check it, and if it's OK I will add it to the worldserver, so every other players will benefit from it.

Currently, only "Outer Base", "Installation" and the "Mine Entrance" have additional entities. So, start to look at other maps. Don't add too much items else you will cause overflow while playing.

If peoples are interested, I will explain more things about xmlrules files. Look at the "The punishment", "Crash n Massacre" or "Rush for the Head" for an overview (q2dm3, q2dm4 and q2dm7).

_________________
Playing : Tiny Attacks


Wed Jul 01, 2009 10:28 am Profile WWW
Champion in quartet

Joined: Wed Oct 01, 2008 6:21 pm
Posts: 322
Post Re: Contribute: add items, monsters and more to existing maps
Thanks for that explanation =)

_________________
Someone told me this couldn't be done... Now I know that he was wrong... Still I don't remeber what!
I really need to follow that "thing" I so call friend.


xRDVx wrote: "Humans can dream... and so do I."
mik1 wrote: "i like boys"


Wed Jul 01, 2009 11:00 am Profile
Champion in solo and duo and trio and quartet

Joined: Tue Jun 23, 2009 3:30 pm
Posts: 623
Post Re: Contribute: add items, monsters and more to existing maps
Thank you for explains, now understand better

_________________
Quaking like it's the '98s.
Feel free to add me on Steam.

Join Coopordie's Discord Server.


Wed Jul 01, 2009 11:24 am Profile YIM
Champion in solo and duo and trio and quartet

Joined: Tue Jun 23, 2009 3:30 pm
Posts: 623
Post Re: Contribute: add items, monsters and more to existing maps
a little problem, object type "shade not found" Where can I find the shade? can you give me a link to resources?

_________________
Quaking like it's the '98s.
Feel free to add me on Steam.

Join Coopordie's Discord Server.


Wed Jul 01, 2009 11:58 am Profile YIM
Champion in solo and duo and trio and quartet

Joined: Tue Jun 23, 2009 3:30 pm
Posts: 623
Post Re: Contribute: add items, monsters and more to existing maps
how coordinated set Z?

I realized

_________________
Quaking like it's the '98s.
Feel free to add me on Steam.

Join Coopordie's Discord Server.


Wed Jul 01, 2009 12:14 pm Profile YIM
Champion in solo and duo and trio and quartet

Joined: Tue Jun 23, 2009 3:30 pm
Posts: 623
Post Re: Contribute: add items, monsters and more to existing maps
choose how an object?

_________________
Quaking like it's the '98s.
Feel free to add me on Steam.

Join Coopordie's Discord Server.


Wed Jul 01, 2009 12:25 pm Profile YIM
Champion in quartet

Joined: Wed Oct 01, 2008 6:21 pm
Posts: 322
Post Re: Contribute: add items, monsters and more to existing maps
Code:
<entity_add>
<entity> { "classname" "item_bandolier" "origin" "-384 1952 -896" } </entity>
<entity> { "classname" "item_armor_combat" "origin" "-360 1992 -896" } </entity>
<entity> { "classname" "item_invulnerability" "origin" "-384 1992 -304" } </entity>
</entity_add>


MAP: jail4
Location: Somewhere...

Is that Ok? Thanks =)

_________________
Someone told me this couldn't be done... Now I know that he was wrong... Still I don't remeber what!
I really need to follow that "thing" I so call friend.


xRDVx wrote: "Humans can dream... and so do I."
mik1 wrote: "i like boys"


Wed Jul 01, 2009 12:31 pm Profile
Admin

Joined: Sun Feb 17, 2002 7:07 pm
Posts: 628
Post Re: Contribute: add items, monsters and more to existing maps
@xRDVx: enclose the entire file with <xml> and </xml> like that:
Code:
<xml>
<entity_add>
<entity> { "classname" "item_bandolier" "origin" "-384 1952 -896" } </entity>
<entity> { "classname" "item_armor_combat" "origin" "-360 1992 -896" } </entity>
<entity> { "classname" "item_invulnerability" "origin" "-384 1992 -304" } </entity>
</entity_add>
</xml>


I have retrieved the off-line xmlrules command line and tested it, it seems to work.

I have tested with "The punishment":
copy the file xmlrules_map_q2dm3.xml in your coopordie directory and launch Quake2 with the following line:

quake2.exe +set game coopordie +map q2dm3 +set xmlrules xmlrules_map_q2dm3.xml

You should be able to test the map with your local xmlrules file.

Please, play a little with the xmlrules and test locally. Then we will discuss about what to add officially, with the need to stay coherent with the difficulty progression. There is also the possibility to add conditional entities, linked to the number of players in the party.

_________________
Playing : Tiny Attacks


Wed Jul 01, 2009 8:23 pm Profile WWW
Champion in quartet

Joined: Wed Oct 01, 2008 6:21 pm
Posts: 322
Post Re: Contribute: add items, monsters and more to existing maps
Oh... Emmmm.. welll....


Mmmm.. btw, isn't there a way to disable that thing of going back to start map each time someone joins? Is because i wanted to test it, but each time that person connect to me, It send me back to StartMap...

Thanks...

_________________
Someone told me this couldn't be done... Now I know that he was wrong... Still I don't remeber what!
I really need to follow that "thing" I so call friend.


xRDVx wrote: "Humans can dream... and so do I."
mik1 wrote: "i like boys"


Wed Jul 01, 2009 9:04 pm Profile
Admin

Joined: Sun Feb 17, 2002 7:07 pm
Posts: 628
Post Re: Contribute: add items, monsters and more to existing maps
xRDVx wrote:
isn't there a way to disable that thing of going back to start map each time someone joins?
Only on the next DLL update.

_________________
Playing : Tiny Attacks


Thu Jul 02, 2009 7:33 pm Profile WWW
Display posts from previous:  Sort by  
 [ 44 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: claudebot [Bot 2024-04-20], Semrush [Bot 2021-12-30]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © phpBB Group.
Initial forum style by Vjacheslav Trushkin.