Phoenix
General Index
What is General For?
History
Confederate History
Dewiek
Flagritz
Mohache
Hive
Falconians
Species
Dewiek
Felini
Falconians
Naplians
Mohache
Posting Rules
IRC / Discord Chat Channel
Resources
Affiliation Web Pages
How to .....
Setting up a forum.
Using Phoenix Nexus.
Laws
Peripheries
Factions
Space
Zones of Moderation
Halo Periphery
Advert for Phoenix
XML Interface
Download turns in python
 
XML Interface

XML interface is accessed by going to Personal -> XML Access and generating a full access code.
This then creates a <ID> and <Code> that allows you to access the site data via your user details.

The general request to get the XML pages is:

http://www.phoenixbse.com/index.php?a=xml&uid=<ID>&code=<Code>&sa=<request>

The <request> is either:

  • info_data - gets current info that you know about
  • order_data - gets current order data
  • pos_list - gets a list of your positions and locations
  • send_orders - sends a set of orders posted as XML
  • game_status - gets teh game status
  • turn_data&tid=<position number>- gets a self contained HTML turn
  • pending_orders&pid=<position number>- gets the pending orders for a turn
  • notes - gets the notifications for your account
  • items - gets all the items and their data that you know about
  • systems - gets all the systems and cbodies that you know about
  • base_data - gets all items in bases + extra info


Notes:
[1] turn_data can have a &type=file which makes it return the filename of the html fragment on the site, to download this file use https://www.phoenixbse.com/?a=tf&t=<returned filename>
[2] when turn_data fails it now returns all the possible turns with file names / last update stamps
[3] Pending orders returns the pending orders (as seen on the turns) if there is no current queued orders. Otherwise it returns the orders in the current queued turn. If you add type=turn you always get the orders that the off-line game has stacked for you and if you add type=current you only get the current orders that are queued.

Notifcations defines  [Recruit]

NOTE_TURN_DATA => 1			- position_id,system_id,type,squad
NOTE_NEW_POSITION => 2 - position_id,system_id,type,squad
NOTE_ACTIVE_MISSION => 3 - mission_id,pos_number
NOTE_NEW_MISSION => 4 - mission_id
NOTE_BATTLE => 5 - location_name,number ships,system_id
NOTE_DELIVERY => 6 - position_id,system_id,quant,item_id,deliver_to_id
NOTE_PICKUP => 7 - position_id,system_id,quant,item_id,picked_up_from_id
NOTE_BUY => 8 - position_id,system_id,quant,item_id,bought_from_id,stellars
NOTE_SELL => 9 - position_id,system_id,quant,item_id,sold_to_id,stellars
NOTE_TRANSFER_IN => 10 - position_id,stellars
NOTE_POSITION_TRANSFER => 11 - position_id,system_id,type,transfer_id
NOTE_RELATIONS_CHANGE => 12 - aff_id,status
NOTE_SYSTEM_CHARTER => 13 - aff_id,status,charter_id - disabled
NOTE_RESTRICTED_STARBASE => 14 - position_id
NOTE_RESTRICTED_CBODY => 15 - system_id,cbody_id
NOTE_RESTRICTED_SYSTEM_LINK => 16 - system_id
NOTE_RESTRICTED_ITEM => 17 - item_id
NOTE_RESTRICTED_ORDER => 18 - order_id
NOTE_RESTRICTED_MISSION => 19 - mission_id
NOTE_RESTRICTED_SYSTEM_LOC => 20 - system_id
NOTE_DELIVERED_TO => 21 - position_id,system_id,quant,item_id,by_id
NOTE_PICKED_UP_FROM => 22 - position_id,system_id,quant,item_id,by_id
NOTE_BOUGHT_FROM => 23 - position_id,system_id,quant,item_id,by_id,stellars
NOTE_SOLD_TO => 24 - position_id,system_id,quant,item_id,by_id,stellars
NOTE_BOARDED => 25 - loc,system_id,position_id
NOTE_RAIDED => 26 - loc,system_id,position_id
NOTE_COMBAT_TRANSACTION => 27 - loc,system_id,position_id
NOTE_SEL_POSITION => 28 - position_id,amount


//coming soon
NOTE_RESTRICTED_DATA => 29 - restricted_type,data0,data1
NOTE_PLANETARY_SALES => 30 - position_id,system_id,cbody_id,trade_type,stellars
NOTE_NEXUS_CASH => 31 - position_id,stellars
NOTE_GM_NOTE => 32 - position_id,group_id,system_id,cbody_id,subject + msg
NOTE_RUMOUR => 33 - data
NOTE_SPOTTED => 34 - position_id,system_id,location_name - not done yet
NOTE_TURN_ERROR => 35 - position_id,system_id,cbody_id,error_code,txt
NOTE_WARNING => 36 - position_id,system_id,cbody_id,warning_code,txt
NOTE_RESEARCH_FINISHED => 37 - position_id,item_id
NOTE_COMPLEX_VISIT => 38 - position_id,base_id,complex_type (txt)
NOTE_TRANSFER_OUT => 39 - to_position_id,stellars
NOTE_ORBITAL_DROP => 40 - position_id,system_id,quant,item_id,by_id - like deliver
NOTE_ORBITAL_RESUPPLY => 41 - position_id,system_id,quant,item_id,by_id - like deliver to
NOTE_SPECIAL_ACTION => 42 - position_id,header + text
NOTE_MESSAGE => 43 - src_pos_id,to_pos_id + message
NOTE_AGENT_ACTION => 44 - position_id,system_id,action_text + text
NOTE_REMINDER => 45 - position_id,note (80 char) + order at add
NOTE_COMPLEX_CHANGE => 46 - position_id,complex_type,built/scrapped/activated/deactivated,number
NOTE_ACCOUNT_LOW => 47 - cash, account below £10 - not done yet
NOTE_REGISTERED_BASE_ACTIVITY => 48 - position_id,system_id,cbody_id,action_type (attacked/bought/registed/deregistered)
NOTE_OPPORTUNITY_FIRE => 49 - loc,system_id,position_id + txt
NOTE_ESCAPING_COMBAT => 50 - loc,system_id,position_id + txt
NOTE_ITEM_DAMAGE => 51 - position_id,item_id,qty,damage,why(optional)
NOTE_GATE_PLATFORM_UPDATE => 52 - position_id,system_id,cbody_id,text
NOTE_LANDING_LIST => 53 - position_id,system_id,cbody_id,target_id,gate,text
NOTE_SYSTEM_RAID => 54 - system_id
NOTE_INFRASTRUCTURE => 55 - system_id,cbody_id,text


WARNING_DEEPCORE_STRUCT => 0 'Insufficient structural modules to deep core'
WARNING_COMPLEXES_NOT_PRODUCING => 1 'Complexes are not producing'
WARNING_SB_EFFICIENCY_LOW => 2 'Base Efficiency has dropped below 100%'
WARNING_SB_SECURITY_LOW => 3 'Base security has dropped below 100%'
WARNING_SHIP_INTEGRITY_LOW => 4 'Ship integrity is low (<25%)'
WARNING_SCOUTED => 5 'Scouted'
WARNING_BASE_SUBVERTED => 6 'Base subverted'
WARNING_BASE_REGISTRATION_REVOKED => 7 'Registration Revoked'


TURN_ERROR_NO_STARGATE_KEY => 0 'has no stargate key'
TURN_ERROR_NO_KNOW_BASE => 1 'has no knowledge of base'
TURN_ERROR_NO_KNOW_SYSTEM => 2 'has no knowledge of system'
TURN_ERROR_NO_KNOW_CBODY => 3 'has no knowledge of celestial body'
TURN_ERROR_INCORRECT_SEC => 4 'has incorrect security clearance'
TURN_ERROR_NO_THRUST => 5 'does not have enough thrust to take off/land'
TURN_ERROR_MAINTENANCE_FAILED => 6 'failed to maintain'


COMPLEX_ACTION_BUILT => 0 'built'
COMPLEX_ACTION_SCRAPPED => 1 'scrapped'
COMPLEX_ACTION_ACTIVATED => 2 'activated'
COMPLEX_ACTION_DEACTIVATED => 3 'deactivated'


REGISTERED_BASE_REGISTERED => 0 'registed'
REGISTERED_BASE_DEREGISTERED => 1 'de-registered'
REGISTERED_BASE_ATTACKED => 2 'been attacked'
REGISTERED_BASE_BOUGHT => 3 'been bought'


COMPLEX_VISIT_RECREATION => 0 'used recreation complexes'
COMPLEX_VISIT_REPAIR => 1 'repaired'
COMPLEX_VISIT_MAINTENANCE => 2 'maintained'
COMPLEX_VISIT_UPGRADE => 3 'upgraded'
COMPLEX_VISIT_REFIT => 4 'refitted'


TRADETYPE_TRADE => 0 'Trade'
TRADETYPE_LIFE => 1 'Life'
TRADETYPE_DRUGS => 2 'Drugs'

Flags  [Recruit]

Order Catagory Flags
====================
RDERFLAG_ANY 0x0
ORDERFLAG_THRUSTMOVE 0x1
ORDERFLAG_MOVEMENT 0x2
ORDERFLAG_TRANSACTION 0x4
ORDERFLAG_STANDINGORDER 0x8
ORDERFLAG_BASIC 0x10
ORDERFLAG_SCAN 0x20
ORDERFLAG_OTHER 0x40
ORDERFLAG_ISSUE 0x80
ORDERFLAG_CREATE 0x100
ORDERFLAG_SQUADRONORDER 0x200
ORDERFLAG_SQUADRONSTANDINGORDER 0x400
ORDERFLAG_TURNTYPE 0x800
ORDERFLAG_BOARDING 0x1000
ORDERFLAG_PLANETARYINTERACTION 0x2000
ORDERFLAG_MACRO 0x4000
ORDERFLAG_COPY 0x8000
ORDERFLAG_FULL 0xfffff

Position Type
=============
POSITIONTYPE_NONE 0x00
POSITIONTYPE_GP 0x01
POSITIONTYPE_SHIP 0x02
POSITIONTYPE_STARBASE 0x03
POSITIONTYPE_DEBRIS 0x04
POSITIONTYPE_POLITICAL 0x05
POSITIONTYPE_PLATFORM 0x06
POSITIONTYPE_AGENT 0x07

Position Flags
==============
POSFLAG_NONE 0x00
POSFLAG_GP 0x01
POSFLAG_SHIP 0x02
POSFLAG_STARBASE 0x04
POSFLAG_POLITICAL 0x08
POSFLAG_PLATFORM 0x10
POSFLAG_AGENT 0x20
POSFLAG_DEBRIS 0x40

Periphery Names / IDs
=====================
Cluster 3
Caliphate 9
Coreward Arm 14
Darkfold 2
Dewiek Home 4
Dewiek Pocket 5
Detinus Republic 6
Flagritz Empire 10
Felini Empire 11
Halo 13
Inner Capellan 1
Inner Empire 8
None 0
Orion Spur 16
Outer Capellan 12
Perfidion Reach 17
Transpiral 15
Twilight 7

Sending Orders  [Recruit]

For send_orders its currently this bit not convinced about sequencing - need to sort that out. {Need to fix so it accepts XML properly}

<turns>
<turn pos_id="Position Number" seq="1 or 0" seq_after="Pos Num to seq after" append="true/false">
<orders>
<order id="Order ID" issue_type="Issue Type">
<param>Param 0</param>
<param>Param 1</param>
</order>
</orders>

</turn>
</turns>


All atrribute in <turn> are optional except "position number"
Boolean Params Values are: true / false
Turns currently are placed into queue (and can end up with duplicates that delete each other if a turn already exists)
By default if a turn is send twice it overwrites the original - if append is set to append="true" then orders are appended to the end of a turn.
The XML only echos back what it wrote not the whole turn.

Issue Type
Is optional - you do not have to add - if added then it takes following states
For ships/gps:
0 => Continue on Error
1 => Stop on Error
For bases:
0 => Normal Order
1 => Pre Production Order
2 => Post Production Order
3 => End of Week Order

Php i used to send XML  [Recruit]

<?php

$xmlRequest="<turns>
<turn pos_id=\"12345\" seq=\"0\" seq_after=\"0\">
<orders>
<order id=\"2040\">
<param>1</param>
<param>2</param>
<param>3</param>
<param>True</param>
<param>True</param>
</order>
</orders>

</turn>
</turns>
";
// code is not from live version :)
$url='127.0.0.1/ss_forums/index.php?a=xml&uid=120&code=c56ec78c26e9c6f136a42a12172fd282&sa=send_orders';
$headers = array(
"Content-type: text/xml;charset=\"utf-8\"",
"Accept: text/xml",
"Cache-Control: no-cache",
"Pragma: no-cache"
);

try{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);

// send xml request to a server

curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);

curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlRequest);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$data = curl_exec($ch);

//convert the XML result into array
if($data === false)
{
$error = curl_error($ch);
echo $error;
die('error occured');
}
else
{
print_R($data);

}
curl_close($ch);

}catch(Exception $e){
echo 'Message: ' .$e->getMessage();die("Error");
}
?>

General Account Data  [Recruit]

Test Account

The following services are available from the blank test account:
https://www.phoenixbse.com/?a=xml&sa=info_data&uid=1&code=22d9b2c0316adab0f9104571c7ed8eb0

https://www.phoenixbse.com/?a=xml&sa=order_data&uid=1&code=22d9b2c0316adab0f9104571c7ed8eb0

https://www.phoenixbse.com/?a=xml&sa=game_status&uid=1&code=22d9b2c0316adab0f9104571c7ed8eb0

https://www.phoenixbse.com/?a=xml&sa=notes&uid=1&code=22d9b2c0316adab0f9104571c7ed8eb0

https://www.phoenixbse.com/?a=xml&sa=items&uid=1&code=22d9b2c0316adab0f9104571c7ed8eb0

https://www.phoenixbse.com/?a=xml&sa=systems&uid=1&code=22d9b2c0316adab0f9104571c7ed8eb0

 
News
Is open for business...
 
user image

***** Inter Galactic News *****

Huge fleet skirmish at the London/Crossley wormhole

A large fleet of over 700 DEN warships responded to the EMP action in Crossley, where a 4000 hull DEN platform was destroyed. Reports show the DEN ships caught a group of CIA ships napping and inflicted significant losses on the humans. IMP and GTT fleets moved to assist the CIA, matching DEN fleet numbers, but the arrival of over 1200 Hexamon ships seems to have tipped the battle in favour of the DEN-HEX alliance.

The combined DEN-HEX force pushed through the wormhole into the Heartland area of human space and retaliated, attacking several CIA platforms in response. The outnumbered Empire fleets abandoned the area and fled, they are currently waiting for the larger alien force to make their next move from their hiding places.
 
user image

***** Inter Galactic News *****

Admiral Lord Simms killed after a long and distinguished service to the Empire.

The Imperial Services have intercepted and serious damaged several DEN ships on the way to the Empire’s home systems. Unfortunately during the action Admiral Lord Simms was injured and reports from the Viceroy indicate he has passed away, fighting the enemies of the Empire like any true Imperial Officer.

The Viceroy has stated that the officers and crew of the DEN ships have been captured and are now awaiting trial at a secret IMP base.

DEN continue to strike at the Empire

Reports are coming in of multiple engagements between the Empire and the Dewiek Elder Nation over the last week. With several battles taking out Empire ships in the Heartland of the CIA.

AFT turn to piracy

The Association of Free Traders have, after a long history of neutrality, turned to piracy this week. AFT Drake boarded an IND ship in the Halo periphery, killing several of the crew in the process.
Independent trader Jarlebanke Langhofdi immediately took to the public communication channel demanding an answer to why supposedly peaceful traders had killed his crew and taken his ship.

The AFT remain silent over the attack.
 
user image

***** Inter Galactic News *****

Combat Special Edition

Since the DEN started shooting at those lovable FEL fluffballs things have certainly been heating up. So we through it would be prudent to bring you, gentle beings of the peripheries, a special edition in order to keep you updated with all the latest action in regards to who the DEN are shooting and who is shooting them.

Felini strike back at Dewiek

Reports have come in of the FEL striking back at the DEN in the Kallisan system. A huge FEL force supported by the IMP and CIA assaulted DEN positions taking both the platform and base called Lucien. There was much rejoicing in the FEL camp as the Felini proved they were not such lovable fluffballs after all!

GTT get sucked into the war

A passing fleet of GTT warships got caught in the fighting and this saw the GTT enter the war. When asked about this CEO Fox pointed out they are not warships at all, they are trade defence ships. So how they came to be in the DEN system of Kallisan is a mystery to us. But the GTT CEO was clear that they only engaged using support and defend orders to protect allies. Needless to say, the CEO commented “We found ourselves on the Dewiek Nation’s enemy lists pretty soon after.”

Dewiek Nation attacks GTT positions in Orion Spur, breaking DOM system rules

A fleet of DEN warships has engaged and destroyed a significant number of GTT cargo ships and escorts in the DOM system Monument. The GTT immediately took to the public channels to ask why the DOM were not doing something. In reply the DOM issued a statement to stop, which the DEN ignored.

The DEN newssheet "The HOWL" published a completely unbiased review of the attack shortly after.

DOM make a choice

After the above incident and then further raiding by the DEN, taking out a few GTT cargo ships in the DOM system of Coptuv, the DOM seemed to have been faced with a choice of stopping drinking their tea and doing something or just hoping it would go away. Instead they seem to have decided to abandon the whole idea of being an active affiliation and we have since folded. The lengths some people will go to not to have their elevenses disturbed is truly staggering. We asked the DOM for a statement on their new system rules to share with our readers but have received no replies.

DOM positions share out

Just as we were going to press news has come in of various DOM assets being given to other affiliations or sold. Hopefully we will have more on this story in the next issue of your favorite factual newsheet. Yes, that's us at the SSS.

*** Affiliations ***


AFT Association of Free Traders (54) - Marion Tweedy
CIA Combined Intelligence Agency (64) - Laton CIA
DNA Displaced Natives Asylum (66) - DNA people
DTR Detinus Republic (58) - Morley Decker
DEN Dewiek Elder Nation (67) - Urd
DOM Dominion (57) – we believe the DOM are now inactive
FCN Falconian Republic (70) - Bacran
FEL Felini Tyranny (49) - Juris
FLZ Flagritz Republic (47) - Kayxaer
FET Frontier Exploration & Trade (56) - Cu Chulainn
GRC Gracians (13) - HG1
GTT Galactic Trade & Transport (52) - Xavier Fox
GCE Garcia Enterprises (4) - Neil
HEX Hexamon (23) - Ando
IMP Imperial Services (51) - Jack Jones
KRL Krell (30) - Namica
KRT Krell of the Reverence Temple (37) - Kal Torak
KST Kastor Kastorians (12) - Kastor
MZC Mizuchi Combine (86) - Mizuchi
MOH Mohache (73) - Listens
MIC Mohache Independent Commune (76) - Sleeps with Dragons
NLF Naplian Liberation Front (38) - NLFHQ
RIP Regularly Involved in Piracy - Githyanki
RRH Roy Robert Holdings (39) - Roy Roberts
SMS Stellar Mining and Smelting (53) - MikhailM
USN Ulian Stellar Nation (34) - Oeipus Prime
WMB Wimble Nations (25) - zz

* Leader MAY be inactive, affiliation may be active
** Affiliation has no leader but this is the only known contact

NPC / FoC: ARC, CIV, CGT, FRE, HBO, HEF, IND, ISP, JCN, MEK, MRC, PIR, PRV, TCA, TRN, KAS

Inactive: ANT, BHD, COD, HVE, IDC, RIP, RCF, SKW, TAG

Deceased: CAL

*** Submission ***

By private message to The Editor or via Mica if you prefer to remain anonymous.
 
user image


***** Inter Galactic News *****

New pirate threat rocks Corward Arm.

Several large pirate ships have been spotted in outer rings of Corward systems. Reports forwarded to us at the SSS allow us to exclusively tell readers that traders should keep their wits about them when moving through these areas.

No existing pirate menace has yet claimed ownership.

In a possibly unrelated event one of the FET cartel members claimed nothing was happening in the outer ring of Coptov shortly afterwards. But it could be that they are still trying to catch Empire backed pirates and have nothing to do with the new sightings.
 
user image

***** Inter Galactic News *****


DEN continue to shoot innocents

The Dewiek have made themselves busy shooting at the peaceful and innocent traders of the SSL. Leader of Solar Spices and Liquors Mr TOAD has been vocal pointing out that the Beast-DEN are being totally unfair. News of a go-fund-me appeal are yet to surface though.

This office is sure that it must have provided the DEN light relief after picking on the equally defenceless Felini. Word is that the DEN faced such an uphill struggle in these recent actions they had to take up Felini inter-breeding to provide some entertainment as the battle reports were rather boring.
 
user image

***** Inter Galactic News *****

Return of the LiQuans

A close associate of the Baron LiQuan has been haunting the Corewards periphery and like the old Baron it is said he has a meklan connection. It's unclear whether he obtained his meklan nanites via the CIA but there are rumours that the DEN may be helping the Liquan relative in a bid to sow discontent in the Stellar Empire. Exactly why they would start in Corewards is unclear although with DEN allies, the DOM, having strong positions both in the Sol system and the old Harcorp systems of Harlong and Coptuv they may be the linking factor.


 
user image

***** Inter Galactic News *****

Meklan Unleashed on Mobile Bay

Mad Dewiek scientist Dr Kala released a number of Meklan on the busy world of Mobile Bay in the Yank system. Thousands of civilians have been killed in what is treated by DEN warlords as an amusing practical joke. Rather than take any responsibility for their affiliation’s reckless behaviour, a DEN lord rumoured to be half-meklan himself quipped he would nuke the planet whilst another merely saw it as an opportunity to test some of his greener troops in combat. Surprisingly, the KAS planetary defence force was up to the job of repelling the insidious incursion. Questions remain whether further meklan are stored elsewhere on the planet and whether anybody will challenge the Dewiek’s lack of care for the lives of innocents. Probably not, given how even the mighty IMP are now cowering from a fight with the DEN (see inside this edition).


 
user image

***** Inter Galactic News *****

Who is behind the AFA?

Following the large scale holiday attack by the AFA against the FET the question of who is behind the attacks has been raised once again. What is clear is that the AFA is using ships that were transferred from the GTT to the IMP. The organisation and expertise of the operation also reduces the pool of potential candidates. Few can go from commanding a handful of broadswords to half a thousand warships and significant army logistics without a long stint in one of the more combative affiliations. With the DEN’s allies the HEX in close relations with the FET and no recent history of animosity between the aliens and FET, at least since the departure of former one-eye big-bun Norozov, it would be a bizarre turn of events if they were behind these attacks. Frankly, there’s no point dancing around it. The IMP are clearly behind the AFA. The question is what can anybody do about this move of significant Imperial resources to a black-flag agency?


 
user image

***** Inter Galactic News *****

Fox Effects Fantastic Turnaround

With his feet barely under the table, Xavier Fox has managed to dramatically turn things around at the GTT. With year-on-year sales figures up by 23%, manufacturing up 42% and ship production increased by 36%, the megacorporation is running at full steam with noticeable impact on local economies across the Stellar Empire. Political analysts also note that after a period of retrenchment following the disastrous leadership of Ike Krieger, investment in defence is at a five-year high. After such bullish growth, the trick will be for Mr. Fox to recruit C-level executives fast enough to match his ambitions. It is notable in temperament, the current crop of GTT politicals do not exhibit the monomaniacal xenophobia of their predecessors and have resisted repeated provocations by the DEN to enter a pointless spar before they have re-established superiority against the foolhardy aliens.


 

Free Ship when you sign-up
Complete missions for in game rewards
Control everything, up to an entire empire
Dedicated human moderators
Player and Moderator driven plotlines
Discover new worlds to explore, exploit & colonise
Over 20 years of content development
Persistent Browser-Based Game (PBBG)

I’ve played on and off for approximately 10 years, over a 20 year spell. After some interesting debate on the in-game forum, I did wonder what, exactly, has kept drawing me back to the game, when for so many others I’ve generally lost interest after a few months.

Ultimately, I think it is a combination of automation (that allows the game to handle thousands of positions to interact on a daily basis) coupled with Special Actions (that allow the story arc to develop in a way that could not be catered for by a set of predefined list of available orders).
-Zigic