Hurray! Another multiplayer clone project. :)

Discuss and distribute tools and methods for modding. Moderator - Grognak
jrb00001
Posts: 201
Joined: Fri Jan 15, 2016 2:22 pm

Re: Hurray! Another multiplayer clone project. :)

Postby jrb00001 » Tue Sep 20, 2016 4:02 pm

kcd.Spektor wrote:Is everyone ok with Friday 7PM UCT?

19:00 UTC is 21:00 CEST. As I have something planned on this friday between 20:00 CEST and ~22:00 CEST, I might not be able to join. It would be better if we could move it to 20:00 UTC or to saturday (whole day) / sunday (morning / afternoon).
The_Bear
Posts: 225
Joined: Mon Jan 04, 2016 5:57 pm

Re: Hurray! Another multiplayer clone project. :)

Postby The_Bear » Tue Sep 20, 2016 4:13 pm

kcd.Spektor wrote:Is everyone ok with Friday 7PM UCT?

I am busy from friday to sunday the next 4 weeks.
kcd.Spektor
Posts: 586
Joined: Thu Nov 26, 2015 8:21 am

Re: Hurray! Another multiplayer clone project. :)

Postby kcd.Spektor » Tue Sep 20, 2016 8:25 pm

My plans have also changed a bit for friday.

So let's move the CBT to satruday, any time.
Galactix, Chickengames, Hak86, PixelBrummagem
You ok with saturday?
The_Bear
Posts: 225
Joined: Mon Jan 04, 2016 5:57 pm

Re: Hurray! Another multiplayer clone project. :)

Postby The_Bear » Tue Sep 20, 2016 8:31 pm

kcd.Spektor wrote:My plans have also changed a bit for friday.

So let's move the CBT to satruday, any time.
Galactix, Chickengames, Hak86, PixelBrummagem
You ok with saturday?

But then I want be able to join.
kcd.Spektor
Posts: 586
Joined: Thu Nov 26, 2015 8:21 am

Re: Hurray! Another multiplayer clone project. :)

Postby kcd.Spektor » Tue Sep 20, 2016 8:48 pm

The_Bear wrote:But then I want be able to join.


I'd realy like for you to join.
But I can't wait for 4 weeks :?
Maybe you can find some time on satruday dirung the whole day?
User avatar
Hak86
Posts: 108
Joined: Thu Mar 31, 2016 8:58 am

Re: Hurray! Another multiplayer clone project. :)

Postby Hak86 » Tue Sep 20, 2016 10:25 pm

kcd.Spektor wrote:
Hak86 wrote:It didn't work :cry:


I've found why it didn't work.

I forgot that I split this into 2 separate events SECTOR_ENTER and SPAWN_SHIP
So now you can't just add ships from the SECTOR_ENTER event, instead you need to have a SPAWN_SHIP event.
Which you will call from your SECTOR_ENTER event by using
<event_param chain_event="SPAWN_SHIP_EVENT_NAME"></event_param>
<event_param chain_event="SPAWN_SHIP_EVENT_NAME2"></event_param>

This way you can reuse the same SPAWN_SHIP event in different SECTOR_ENTER events, in different combinations.
Also this allows to call any other type of event when a ship enter the sector.

Check out the example.xml2 file
Look for SECTOR_ENTER event, and see how it's calling the Spawn an asteroid event.
Thanks for the help :D
This is a bad signature. :|
User avatar
Hak86
Posts: 108
Joined: Thu Mar 31, 2016 8:58 am

Re: Hurray! Another multiplayer clone project. :)

Postby Hak86 » Tue Sep 20, 2016 10:27 pm

kcd.Spektor wrote:My plans have also changed a bit for friday.

So let's move the CBT to satruday, any time.
Galactix, Chickengames, Hak86, PixelBrummagem
You ok with saturday?

I can't do this Saturday or the next one. :?

EDIT: I can't do Friday next week either.
This is a bad signature. :|
kcd.Spektor
Posts: 586
Joined: Thu Nov 26, 2015 8:21 am

Re: Hurray! Another multiplayer clone project. :)

Postby kcd.Spektor » Wed Sep 21, 2016 5:10 am

I will soon post a tested example event that spawns some random pirates.

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<events>
   <event type="SECTOR_ENTER" name="PIRATE_AMBUSH_L0">
      <event_param nonstop="0"></event_param>
      <event_param min_event_qty="1"></event_param>
      <event_param max_event_qty="1"></event_param>
      <event_param chain_event="SPAWN_B_LS_L4_1"></event_param>
      <event_param level="0"></event_param>
      <event_param chance="100"></event_param>
      <event_param trigger_message="You have run into an ambush,"></event_param>
      <event_param trigger_message="set up by pirates."></event_param>
      <event_param broadcast_message="Sensors indicate that a new ship"></event_param>
      <event_param broadcast_message="has entered this sector"></event_param>
      <condition type="SECTOR_TYPE_PRESENT">
         <condition_param sector_type="0"></condition_param>
         <condition_param sector_type="1"></condition_param>
         <condition_param sector_type="2"></condition_param>
         <condition_param sector_type="3"></condition_param>
         <condition_param sector_type="4"></condition_param>
      </condition>
      <condition type="SECTOR_SHIPS_ABSENT">
         <condition_param qty="2"></condition_param>
      </condition>
   </event>
      
   <event type="SPAWN_SHIP" name="SPAWN_B_LS_L4_1">
      <event_param nonstop="1"></event_param>
      <event_param min_event_qty="1"></event_param>
      <event_param max_event_qty="1"></event_param>
      <event_param random_ship="1"></event_param>
      <add_ship>
         <ship_param free_doors="0"></ship_param>
         <ship_param free_med="0"></ship_param>
         <ship_param free_oxygen="0"></ship_param>
         <ship_param free_sensors="0"></ship_param>
         <ship_param safe_zone="0"></ship_param>
         <ship_param transparent_cells="0"></ship_param>
         <ship_param gen_ship_model="B_LS_L4_1"></ship_param>
         <ship_param ship_qty="1"></ship_param>
         <ship_param random_ship_name="1"></ship_param>
         <ship_param ship_owner="THE_BEARS"></ship_param>
         <ship_param random_pos="1"></ship_param>
         <ship_param min_missile_ammo="4"></ship_param>
         <ship_param max_missile_ammo="10"></ship_param>
         <ship_param min_drone_ammo="4"></ship_param>
         <ship_param max_drone_ammo="10"></ship_param>
         <ship_param min_scrap="40"></ship_param>
         <ship_param max_scrap="80"></ship_param>
         <ship_param min_health="6"></ship_param>
         <ship_param max_health="10"></ship_param>
         <ship_ai type="LIFE_SUPPORT"></ship_ai>
         <ship_ai type="SENTRY"></ship_ai>
         <ship_param random_npc_on_ship="0"></ship_param>
         <spawn_npc_on_ship>
            <npc_param npc_qty="1"></npc_param>
            <npc_param npc_is_crew="1"></npc_param>
            <npc_param npc_random_name="1"></npc_param>
            <npc_param npc_race="HUMAN"></npc_param>
            <npc_param npc_home_system="PILOTING"></npc_param>
            <npc_param npc_spawn_at_home="1"></npc_param>
            <npc_ai type="NPC_LIFESUPPORT"></npc_ai>
             <npc_ai type="NPC_FIREMAN"></npc_ai>
            <npc_ai type="NPC_REPAIRMAN"></npc_ai>
            <npc_ai type="NPC_WORKER" SYSTEMS="PILOTING" WORK_TIME="10"></npc_ai>
         </spawn_npc_on_ship>
      </add_ship>
   </event>
</events>
Last edited by kcd.Spektor on Wed Sep 21, 2016 6:15 am, edited 1 time in total.
kcd.Spektor
Posts: 586
Joined: Thu Nov 26, 2015 8:21 am

Re: Hurray! Another multiplayer clone project. :)

Postby kcd.Spektor » Wed Sep 21, 2016 5:36 am

As for the CBT.

The first CBT will be this saturday.
Whoever can join this saturday please post,
So far it's only JRB.

If you can't make it this saturday, then you will have a chance to join the next CBT.
Because I plan to have several of them anyway - to ballance the scenario a bit.
TehBobo
Posts: 1
Joined: Wed Sep 21, 2016 6:02 am

Re: Hurray! Another multiplayer clone project. :)

Postby TehBobo » Wed Sep 21, 2016 6:10 am

I am interested in participating in the CBT but I am not sure if I will have Internet. If I do I will let you know. If not then I won't be able to post.