Traveller Store CotI Features New Posts Mark Forums Read Register


Go Back TravellerRPG.com > Citizens of the Imperium > General Traveller Discussions > Software Solutions

Software Solutions Discussions on Traveller related software.

Reply
 
Thread Tools Display Modes
  #21  
Old December 27th, 2012, 04:37 PM
Shonner Shonner is offline
Citizen: SOC-14
 
Join Date: May 2009
Posts: 1,232
Gallery : 0
Shonner Citizen+Shonner Citizen+
Send a message via Skype™ to Shonner
Default

Quote:
Originally Posted by Leitz View Post
I use vi.

Some use Eclipse as an IDE. Whatever you're using for Python may have a PHP variant.
I remember vi. I used it a lot in the '80s. Haven't had a chance to use UNIX much since then.
__________________
April 28th, 2015 was my last day on this forum.
Reply With Quote
  #22  
Old December 27th, 2012, 05:05 PM
aramis's Avatar
aramis aramis is offline
Administrator
 
Join Date: May 2001
Location: Anchorage, AK, USofA
Posts: 29,416
Gallery : 56
Visit aramis's Blog
aramis has disabled reputation
Send a message via ICQ to aramis Send a message via AIM to aramis Send a message via Yahoo to aramis
Default

Quote:
Originally Posted by Shonner View Post
Just for the heck of it, I went on YouTube and learned PHP just now. That was fast.

I'm joking. But I did write some quick code to test. So linking to a PHP file only results in receiving the output from it. Linking triggers its execution. Nice. So source code cannot be had, I'm guessing? I like that.

Just need a good PHP editor now.
There are ways to grab the code - but it relies on some apache exploits.
__________________
~ Aramis
aramis.hostman.us /trav
Smith & Wesson: The Original Point and Click interface!

Archduke of Sylea (CORE 2118)
Duke of the Third Imperium (SPIN 0534)
Count Terra (SOLO 1827)
Count Gorod (REFT 1302)
Count of the Third Imperium (SPIN 2232)
Viscount of Adabicci (SPIN 1824)
Marquis of the Solomani Rim (SOLO 0606)
Marquis of the Third Imperium (SPIN 2410)
Baron of the Third Imperium (SPIN 2231)
Knight of the Iridium Throne (CORE 1434)
Sir William Hostman (OLDE 0512)
Sir William Hostman (DAGU 0622)
Knight of Deneb (REFT 2239)
Knight of Deneb (Spin 2532)
SEH w/Diamonds for Extreme Heroism - Battle of Boughene
MCG - Battle of Boughene
TAS: William Hostman (CORR 2506)
TAS: Bearer (DAIB 1326)
IMTU ct+ tm++ tne tg-- tt+ tmo+ t4- t20+ to ru+ ge+ 3i+ c+ jt au ls pi+ ta he+ st+
Wil Hostman 0602 C539857-9 S A724
OTU: 95% 3i an+ au+ br- cpu± dt± f+ fs++ ge± ih- inf± j± jf+ jm+ jt+ ls- n= nc+ pi+ pp-- tp+ tr+ tv- vi-- xb+-
Unless there is bold red text, presume my posts to be my personal material only.
Reply With Quote
  #23  
Old December 27th, 2012, 05:14 PM
Shonner Shonner is offline
Citizen: SOC-14
 
Join Date: May 2009
Posts: 1,232
Gallery : 0
Shonner Citizen+Shonner Citizen+
Send a message via Skype™ to Shonner
Default

Yep. Hackers can get files if they need them.
__________________
April 28th, 2015 was my last day on this forum.
Reply With Quote
  #24  
Old December 27th, 2012, 09:28 PM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,740
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

Okay, give it another shot. The skill lists are my own doing, and the number of skills is d6 + MAX_RANK/2 for that position. In this case ranks go from 1-16 (BG). The number of skills does not include default skills for the position like GunCbt for enlisted, Recon for junior NCOs, etc.

http://beta.reuel.net/game/create_mercenary_unit.php

You can create as many companies as you like. I've not given much though to Brigade or above sized units. If you need more just re-click the link and you have a whole new company!

And for Aramis, since I like to put array entries on their own line, it went from 165 LOC to 252. Using some better functions the main part of the program lost several duplicated lines.
Reply With Quote
  #25  
Old December 28th, 2012, 04:13 AM
Blue Ghost's Avatar
Blue Ghost Blue Ghost is offline
Knight
 
Join Date: May 2001
Location: Foster City, CA
Posts: 8,018
Gallery : 0
Visit Blue Ghost's Blog
Blue Ghost has disabled reputation
Default

Quote:
Originally Posted by Leitz View Post
So far just the basics; rank, last name, and UPP. Suggestions?

http://beta.reuel.net/game/create_mercenary_unit.php

It uses weighted stats as I assume an active mercenary unit would weed out the physically challenged or mentally unreliable. Names include the most common 2300 or so terran names.

If you need more than a company just hit the link again.
Roland's Raiders
Reply With Quote
  #26  
Old December 29th, 2012, 01:25 AM
Shonner Shonner is offline
Citizen: SOC-14
 
Join Date: May 2009
Posts: 1,232
Gallery : 0
Shonner Citizen+Shonner Citizen+
Send a message via Skype™ to Shonner
Default

I was having trouble running PHP locally. Just ran across a YouTube video that mentioned Wampserver 2.2. So now my localhost works. Picked up Notepad++ also. Been using regular notepad or wordpad for everything.
__________________
April 28th, 2015 was my last day on this forum.
Reply With Quote
  #27  
Old December 29th, 2012, 06:47 AM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,740
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

Quote:
Originally Posted by Shonner View Post
I was having trouble running PHP locally. Just ran across a YouTube video that mentioned Wampserver 2.2. So now my localhost works. Picked up Notepad++ also. Been using regular notepad or wordpad for everything.
I'm not sure on Windows, but on Linux you can run:

php myfile.php

And it will run the flie on the command line, without a webserver. Or you can use the built in webserver:

http://php.net/manual/en/features.co....webserver.php

I'm looking forward to seeing your handiwork!
Reply With Quote
  #28  
Old December 29th, 2012, 07:43 PM
Shonner Shonner is offline
Citizen: SOC-14
 
Join Date: May 2009
Posts: 1,232
Gallery : 0
Shonner Citizen+Shonner Citizen+
Send a message via Skype™ to Shonner
Default

My WinXP comes with nothing, as far as web serving or programming goes. I don't think it came with QBASIC even? I think I copied that over from my Win98 CD.

At first, I downloaded/installed from php.net. It asked which server I wanted to install. I didn't want to turn my computer into a web server with services running and all. Plus, I didn't know which server to install/use (or all of them). But Wampserver only runs when I double-click it.
__________________
April 28th, 2015 was my last day on this forum.
Reply With Quote
  #29  
Old December 29th, 2012, 07:57 PM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,740
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

Quote:
Originally Posted by Shonner View Post
At first, I downloaded/installed from php.net. It asked which server I wanted to install. I didn't want to turn my computer into a web server with services running and all. Plus, I didn't know which server to install/use (or all of them). But Wampserver only runs when I double-click it.
The internal php server only listens on the localhost port, which means that no one else besides your machine can reach it. It just saves you the trouble of the WAMP server. Of course, if you already have one then you're good to go.
Reply With Quote
  #30  
Old December 29th, 2012, 08:06 PM
Shonner Shonner is offline
Citizen: SOC-14
 
Join Date: May 2009
Posts: 1,232
Gallery : 0
Shonner Citizen+Shonner Citizen+
Send a message via Skype™ to Shonner
Default

Ha ha. I wanted to do more than a PHP command line, but less than a full-on PHP server.

I still need to refine my Python code further and get it completed before I start converting it over to PHP. I'm in the process of outputing my Python generated homeworld and character into an Excel Traveller character sheet of a sort.
__________________
April 28th, 2015 was my last day on this forum.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
One man game company? Trent The Lone Star 28 August 20th, 2009 04:15 AM
The Company or The Shepherd? Keklas Rekobah TAS Opinion Polls 15 September 14th, 2007 11:52 AM

This website and its contents are copyright ©2010- Far Future Enterprises. All rights reserved. Traveller is a registered trademark of Far Future Enterprises .
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2010-2013, Far Future Enterprises. All Rights Reserved.