Black Cat's Lab

To content | To menu | To search

Tuesday 15 June 2010

Next releases coming soon !

After a complicated moving, no internet, my dev machine which isn't support first heat-stroke (god save SVN), i'm finally back to SP project.

Next releases coming soon... :)

Saturday 15 May 2010

10000 downloads !

I'm glad to announce the 10.000th download of Space Trader in less than two months :)

So, 10.000 thanks for yours encouragements and feedback !

I've again a lot of ideas to improve SP and I hope you'll enjoy coming soon features.

Friday 14 May 2010

Changelog Space Trader 1.1.4

New features

  • garage:
  • 1.1.4 - allows to buy other ship Done
  • 1.1.4 - sort weapons to buy by price Done
  • 1.1.4 - change some ship name Done
  • 1.1.4 - add color on weapon list Done
  • highscore:
  • 1.1.4 - filter by game level Done
  • new game:
  • 1.1.4 - begin with different amount of money (depends on federation & difficulty) Done

Bugs fix

  • 1.1.4 - missing labels on ship tab for fuel and loading (garage) Done
  • 1.1.4 - fix memory leak & optimize Done

Coming soon

Game is still in active development and I'll try to release a new version each week, thanks to :

Known bugs : 

  • 1.1.? - when change target planet in compare tab notifying bar appears/disappears
  • 1.1.5 - launch new game wait and wait nothing happens
  • 1.1.5 - planets are stretched
  • 1.1.5 - launch new game and do others things during initialization then app crash
  • 1.1.? - switching between "Buy" and "Compare" tabs will result in a blank page on the "Compare" tab

Roadmap :

  • garage:
  • 1.1.? - buy other equipment
  • 1.1.? - ship speed (with incidence on run away)
  • 1.1.5 - max weapon slot by ship (1 to 4)
  • 1.1.? - enhance once you purchase three weapons, you can no longer see other weapons without first selling an old item
  • leave planet:
  • 1.1.5 - galaxy map
  • 1.1.? - prepare an ambush
  • profile:
  • 1.1.? - player skills (fighting, navigation, trading)
  • 1.1.5 - police search indice (by federation) and player karma
  • 1.1.? - player stats
  • store:
  • 1.1.? - enhance ergonomy
  • 1.1.? - enhance compare view
  • 1.1.5 - improve trading rules, some items aren't available on planets
  • 1.1.? - enhance buy/sell weapon view
  • travel event:
  • 1.1.? - encounter asteroid field
  • 1.1.5 - encounter other trader
  • 1.1.? - encounter destroyed ship
  • planet event:
  • 1.1.? - strike
  • 1.1.? - industrial slump/growth
  • combat:
  • 1.1.? - surrender/give items to pirat to avoid combat
  • 1.1.? - bribe police to let you go
  • new game:
  • 1.1.5 - display more information (ship, federation description, credits to start)
  • 1.1.? - choose skills
  • highscore:
  • 1.1.5 - add ship value to score
  • general:
  • 1.1.? - write detailled help
  • 1.1.? - challenge mode
  • 1.1.5 - enemy progressive difficulty
  • 1.1.5 - fix memory leak & optimize

Wednesday 5 May 2010

Layout for custom scrollable dialog

For space trader needs, I had to develop custom dialog which aims user to scroll when content is too long to bee displayed on screen.

Source :

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_root" android:orientation="horizontal"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:padding="10dp">
<ImageView android:id="@+id/imgMentor" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginRight="10dp"
android:layout_alignParentTop="True" android:src="@drawable/mentor" />
<TextView android:id="@+id/tvSubject" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:textColor="#FFF"
android:layout_alignParentTop="True" android:layout_toRightOf="@id/imgMentor"
android:text="@string/default_text" />
<TextView android:id="@+id/tvExplanation"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textColor="#FFF" android:layout_below="@id/imgMentor"
android:layout_marginTop="7dip" android:text="@string/default_text" />
</RelativeLayout>
</ScrollView>

And result :

Saturday 1 May 2010

Android application and user feedback

Today a new "feedback" link appears on my developer console with following disclaimer : "Welcome to the Feedback Experiment,You can see feedback for your apps below..."

Curious, I click on to discover an awesome feature, from now on user can raise bug report when he encounter it and you could browse them on your developer console.

User feedback summary :

Error list and frequence statistics :

And stack trace and platform detail :

Android doesn't only provide good development platform but equally tools which make easiest your developer life and help you to realize robust and reliable apps.

Well, I've got some errors to fix :D

Thursday 29 April 2010

Changelog Space Trader 1.1.3

New features

  • new items (add medecine and jewels, replace computer by robot)
  • same buying/selling price on a planet
  • improve trade rules : events (war, famine, epidemy, etc) change goods needs and price
  • improve trade rules : illegal goods are more profitable
  • improve trade rules : item price change when you buy/sell (sell -> reduce planet need)
  • store view : add "compare with" tab
  • profile view : add stats and news tabs (planet events as war, etc)
  • garage view : move inventory tab from store, split other info to ship and equipment tab
  • add new police ship
  • change stats and garage background
  • combat : get items when you kill enemy
  • choose game difficulty (influe on profits)

Bugs fix

  • bug "The slider won't work for me when I try to sell 1 item, when I own 1 item only"
  • bug "if you sell Laser I it prints out Do you want to sell the Laser II?"
  • ship info with negative loading (come from get item when kill enemy problem)
  • bug "The patrol confiscated my cargo, but when I docked I found that while nothing was in my inventory my load still read 70/70, which prevents me from buying anything else."

Wednesday 28 April 2010

Android versions and devices

To help me to enhance test coverage and portability of Space Trader, thanks to post what kind of mobile and android version you use.

Space Trader works on android 1.5 and higher, theorically 97% of target devices, see android platform version percents.

Android 1.5

Mobile/ST Version 1.1.2 1.1.3 1.1.4
HTC Hero OK OK ?
Samsung Moment KO (force close when leaving planet) ? OK

Android 1.6

Mobile/ST Version 1.1.2 1.1.3 1.1.4
HTC Magic OK OK OK
Samsung Behold 2 - OK ?

Android 2.0

Mobile/ST Version 1.1.2 1.1.3 1.1.4
Motorola Droid KO (stores are always empty) OK ?
Motorola Milestone OK ? ?

Android 2.1

Mobile/ST Version 1.1.2 1.1.3 1.1.4
HTC Desire OK OK ?
HTC Incredible OK OK ?
HTC Legend ? ? OK

Saturday 24 April 2010

When a monkey stress your android application

Introduction

Monkey is a program that runs on your emulator and generates pseudo-random streams of user events (clicks, touches, etc) and system-level events.

It can be use to stress-test applications that you are developing, in a random yet repeatable manner.

Use

Once your emulator is launched, run monkey test with adb :

nico@laptop:/tools$ ./adb shell monkey -p com.blackcatslab.spacetrader -v 500

In my case, space trader crash and monkey provides following stack trace :

// CRASH: com.blackcatslab.spacetrader (pid 222)
// Short Msg: database not open
// Long Msg: java.lang.IllegalStateException: database not open
// Build Label: android:generic/sdk/generic/:2.1/ERD79/22607:eng/test-keys
// Build Changelist: 22607
// Build Time: 1261182920
// ID:
// Tag: AndroidRuntime
// java.lang.IllegalStateException: database not open
// at android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:1517)
// at android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:1499)
// at com.blackcatslab.spacetrader.data.DbAdapter.updateShipCurrentFuel(DbAdapter.java:1027)
// at com.blackcatslab.spacetrader.PlanetLeave$2.onClick(PlanetLeave.java:218)
// at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:158)
// at android.os.Handler.dispatchMessage(Handler.java:99)
// at android.os.Looper.loop(Looper.java:123)
// at android.app.ActivityThread.main(ActivityThread.java:4363)
// at java.lang.reflect.Method.invokeNative(Method.java:-2)
// at java.lang.reflect.Method.invoke(Method.java:521)
// at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
// at dalvik.system.NativeStart.main(NativeStart.java:-2)

** Monkey aborted due to error.
Events injected: 197
:Dropped: keys=0 pointers=20 trackballs=0 flips=0
## Network stats: elapsed time=26752ms (26752ms mobile, 0ms wifi, 0ms not connected)
** System appears to have crashed at event 197 of 500 using seed 0

You can found more information on Monkey tool usage on android developper website.

I can now try to reproduce this sqlite connection problem and fix it. Remember Monkey runs a random stress test which can successfully finished 10 times and failed the 11th.

Special thanks to Max who's presented me this awesome stress-test tool.

Wednesday 7 April 2010

Changelog Space Trader 1.1.2

New features

  • profile / stats view
  • ugrade your ship loading capacity
  • new event police control
  • change weapons price

Bugs fix

  • shield repair (when no enough money to totally repair)
  • garage french locale missing
  • missing toast when player can't buy weapon
  • when user sell some items (not all) inventory total price become erroneous (= total selling price)
  • fix memory leak

Wednesday 31 March 2010

Changelog Space Trader 1.1.1

New features

  • allow longest game (75, 100 rds)
  • change weapon power/price (add chip weapons)
  • save/load game

Bugs fix

  • buy weapon toast message error
  • reduce images size

Monday 29 March 2010

Changelog Space Trader 1.1.0

New features

  • 16 available weapons
  • 35 different ships (you can't currently change)
  • buy / sell weapon in garage
  • main menu disclaimer

Bugs fix

  • game round left increment and pause

Sunday 28 March 2010

First release of Space Trader 1.0.9 on android market

It's done, first Space Trader release is now available on market !

Next version coming soon with others travel events (asteroid, lost items, etc), others features in garage like customize or change your ship (buy weapon).

Thanks to raise bugs or ideas !

Monday 15 March 2010

First post on new blog

The first market release of our first android application coming soon...