[Feature Request] Trading

8 views
Skip to first unread message

GrizzlyAdams

unread,
Aug 24, 2008, 5:45:42 PM8/24/08
to mysqlgame
It would be awesome if you could send a trade emissary (cost 1 fuel *
distance) to another player offering to trade X units money/fuel/
attackers for Y units money/fuel/attackers.

Player offering trade pays fuel costs for sending the items each way.

Example:

Bob offers to trade 100 fuel from his row (180) to Jim's row (170) in
exchange for 100 money. This costs Bob 130 fuel. Jim accepts Bob's
offer, 100 money is removed from Jim's row, and placed in Bob's, 100
fuel is placed in Bob's.

What happened: Bob's row was deducted 130 fuel because of the cost of
fuel for 1: the trade emmissary, 2:getting the fuel there, 3: getting
the money back, and 4: the actual fuel being offered.

Another Example:

Bob offers to trade 200 fuel from (180) to Jim at (170) in exchange
for 600 money. This costs Bob 290 fuel. Jim doesn't like Bob's offer
and denies it. Bob gets back 240 fuel. Jim gains nothing and loses
nothing.

What happened: Bob's row was deducted 290 fuel This was 20 for the
fuel to get there, 60 for the money back, 10 for the emmissary, since
the fuel returned instead of the money, the fuel + 40 unused units is
added back to Bob's row.

Final Example:

Bob offers 600 fuel to Jim in exchange for 100 money. Bob's row is
deducted 730 fuel. Jim likes this offer and accepts. Bob gets back 50
fuel an 100 money (the extra 50 fuel was to cover the cost of
returning the fuel if Jim had denied the trade). Jim gets 600 fuel,
and loses 100 money.

Alex Rubin

unread,
Aug 24, 2008, 8:28:58 PM8/24/08
to mysqlgame
(Almost) the same feature is available by just sending the other
person a chat message with your offer to pay for the costs of
transport. It is a good suggestion though and I'll leave it up to the
project admins to give the green light.

mysq...@gmail.com

unread,
Aug 24, 2008, 9:16:59 PM8/24/08
to mysqlgame
I have no problem with that, especially if someone else wants to write
it. Were you volunteering, Alex? :)

(By request, Adrian and I have given a few people read access to the
source, by the way -- Alex being one. If anyone else wants in, let me
know.)

--Jack

Alex Rubin

unread,
Aug 25, 2008, 11:16:16 PM8/25/08
to mysqlgame
Sure, I'll start working on it.

Tim

unread,
Aug 26, 2008, 12:15:50 AM8/26/08
to mysqlgame
I have mySQL experience (I've made 2 websites the use mySQL databases)
and I think that what you're doing here is great. I'd be happy to help
you develop it. Let me know.

Tim

unread,
Aug 26, 2008, 12:20:01 AM8/26/08
to mysqlgame
p.s. I have experience with CSS as well, if you'd like me to work on
the skin system, but I enjoy functions more.

Warll

unread,
Aug 26, 2008, 12:21:28 AM8/26/08
to mysqlgame
Tim hate to break it to you but Mysqlgame is not a Mysql DB.

mysq...@gmail.com

unread,
Aug 26, 2008, 12:29:19 AM8/26/08
to mysqlgame
So the joke works on multiple levels, right? But python and app engine
are a pretty fun environment to code in anyway, and we appreciate all
the help we can get. I'll follow up tomorrow.

--Jack

Tim

unread,
Aug 26, 2008, 12:39:35 AM8/26/08
to mysqlgame
Yea, I don't know python, but I know at least 5 languages; it
shouldn't be hard to pick up another. Looking forward to hearing from
you. (I've been looking for a new project to occupy myself with).

JamieHari

unread,
Aug 26, 2008, 1:20:20 AM8/26/08
to mysqlgame
I am an intermediate developer and DBA. (MSSQL/Oracle/MySQL)
By all means, if I can be of any small help, I would be happy to
oblige.

A peek under the hood at what you have done so far, would be nifty.


Cheers,


Jamie

Warll

unread,
Aug 26, 2008, 1:33:14 AM8/26/08
to mysqlgame
"So the joke works on multiple levels, right?"

What joke? I only know that the MySQL part is a lie from one of your
other posts.
Reply all
Reply to author
Forward
0 new messages