Terraria … on Android – Progress

Update: 05/15/2012 @ 11:57 AM

Extremely close. Still working out some bugs. I want to be sure this is worth your time and my effort ;) .
Scratch that… had some last minute issues. Let’s try this again… today.
I’ve completed some intense optimization, feature enhancement, and redesign of some elements of this solution. After I spend some more time ensuring compatibility today this sucker is going on the market.

For an interesting twist on this, if you have any assets (image, sound, gameplay, whatever) that you want included in this by default comment with a link. I’ll do my best to get them in with the initial release.

Also note proceeds from this will fuel it’s progression and the manifestation of something amazing I have planned to go with it.

I forgot to mention… I have this running on my Vita too. Thanks to the PS Suite. Maybe we’ll see it there too. That rear panel might be fun to mess with.


Terraria Android t-mobile g2x


Stay tuned!

Donate!


Update: 05/12/2012 @ 1:20 AM

Here’s a video of Terraria on my t-mobile g2x. I’ve reduced the memory footprint by more than 60%. Below is the link to the second (better) video on the Transformer Prime.

Also, I have something much cooler to share. Soon.


Update: 05/10/2012 @ 12:16 AM — VIDEO!


Screenshot_2012-05-08-05-26-58

Note, in the video the white circles are touches. I have it connected to a monitor so I can capture a better video. Feedback is always welcome!

To those who’ve mentioned size restrictions and mis-clicking on tiles – I have everything 2x scaled (as can be seen in the most recent images). It works extremely well in my opinion: with that and the responsiveness considered to me building is about as natural as painting.

Regarding a release date… I plan to have it ready this week… but this brings up another very important question: do I have permission?

Unfortunately as I stated in my update on 05/06/2012 I don’t expect release a port exactly:

unless by some miracle I get permission

The short answer is no, I do not yet have permission. I have reached out to Re-Logic and the Terraria development team through multiple channels on multiple occasions and have not yet received a response. If anyone can help me with this, by all means please get in touch with me so I can get this on Google Play sooner rather than later.

There is a proven alternative, which I’ve started to explore and will do finish if necessary… as for the details of that alternative – I’ll explain if this week’s end rolls around and I haven’t gotten in touch with Re-Logic.


Update: 05/08/2012 @ 5:30 AM

A couple screenshots


Update: 05/06/2012 @ 7:26 AM

I’ve made some very significant progress… potentially am almost ready for a release however that may work.

Just one note first – to compile this you have to purchase a copy of Xamarin’s Mono for Android. Which costs $399 at the least.

Either way, I have another idea (unless by some miracle I get permission): release it as an apk on the market avoiding all potential copyright conflict. On to the news… here’s what’s been updated:

  • Scaling!!!
  • Performance enhancements
  • Streaming music load, all sounds/music working and correct
  • UI enhancements
  • etc…

Update: 05/03/2012 @ 5:28 PM

I’ve got everything working, just doing some optimizations for ram usage, virtual gamepad, other input device support, etc. Almost ready to get some community testing…

I’m trying to decide how I can enforce the original steam purchase so I’m not inadvertently promoting piracy also.

FYI: We are at about 25 fps stable on my transformer prime. 60 stable on my 4.0.3 x86 RC1 brazos platform. Haven’t tested on my phone in a bit (tegra 2 – LG G2X). Water slows them down though, so I’m also working on that.


Update: 05/01/2012 @ 11:21 PM

Getting much closer:

  • Backgrounds
  • Much faster
  • More responsive touch
  • Switched to 2.3 api
  • Silly added bonus – sync with dropbox for save (world and player) storage

Of course I plan on supporting gamepads :) . Note my two plugins for the same game on Windows.


Update: 04/30/2012 @ 11:17 PM

Also some more images have been added.


Update: 04/30/2012 @ 9:18 PM

I now have it working with the latest version of Terraria (v1.12).
The game is mostly playable, here’s whats complete:

  • Character movement, jumping
  • Item usage, hotkeys – virtual gamepad support
  • Simple touch functionality
  • Lazy loading of select resources (reduces load times to seconds vs minutes)
  • Character creation, multiplatform saved player, world, and configuration
  • Sound effects, partial music

I’ll do a short video.


I’ve been working on this for a while, and finally have it running…  I’ll post links to download when its finished (one way or the other) but for now all I could put together in my moment of excitement is a screenshot.

Please, ignore the fingerprints and crappy shot.  I’m working with the tools within reach here. :)

Note: this is running on an ASUS Transformer Prime.  Touch input works to an extent.  It will work completely when I finish.

28
Apr 2012
AUTHOR bradgearon
CATEGORY

Gaming, Terraria

COMMENTS 14 Comments

SQL Server Management Studio 2012 Color Theme Extension Support

Greenshot image editor - SQL Server 2012 Virtual Launch Event - Google Chrome_2012-03-19_23-10-40

I’m a big fan of the new SQL Server Management Studio…

Not so much a fan of the fact it doesn’t support themes as Visual Studio or have the well put together interface for extensions that Visual Studio does.  I mean – it uses the shell.. why not?  Either way, in an attempt to add theme support – I’ve found that extensions work pretty easily (at least the color theme for VS 2010 does).  See the screenshot above – do the following to replicate it on your box.

Note the use of the dark expression theme: http://www.nerdpad.com/visual-studio/visual-studio-2010-dark-expression-blend-color-theme

The source VS 2010 plugn: http://visualstudiogallery.msdn.microsoft.com/20cd93a2-c435-4d00-a797-499f16402378/

Unzip this to your SQL Server Management Studio path in the extensions folder ( for me was C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Extensions).


Start/restart SSMS, and customize the theme as necessary.

Also note that you can easily import existing syntax color themes from wherever (http://studiostyl.es/) as well.  I’m currently digging VS11 – Dark.

Have fun!

19
Mar 2012
AUTHOR bradgearon
CATEGORY

Development, SQL

COMMENTS 9 Comments

Regex (regular expression) SQL Server Insert Statements To Add If Not Exists

Regular Expressions Cheat Sheet (PDF), Dave Child

If you’re like me and stuck managing a giant database along with version upgrades this may come in handy.  I’m posting about it mostly for my own good though.  Regardless feel free to make it better and comment with the complete regex (ie adding optional groups or INTO and or VALUES / SELECT – so that it works for any generated or otherwise script.

Basically the gist is to have a regex that can be run on a bunch of insert statements to turn it into an insert if not exists – with some primary key.

Run the regex on this SQL insert statement:

INSERT [dbo].[Dummy] ([id], [name], [description], [listOrder], [dateCreated], [dateUpdated]) VALUES (N'87901F8E-5595-4A95-8AEA-45A61B5A65D2', N'Doofus', N'This one''s stupid', 10, getdate(), getdate())

Outputs the following SQL insert statements:

INSERT Dummy ([id], [name], [description], [listOrder], [dateCreated], [dateUpdated])
SELECT N'87901F8E-5595-4A95-8AEA-45A61B5A65D2', N'Doofus', N'This one''s stupid', 10, getdate(), getdate()
WHERE NOT EXISTS (SELECT 1 FROM Dummy WHERE id = '87901F8E-5595-4A95-8AEA-45A61B5A65D2')

The regular expression is:

  • INSERT \[dbo\]\.\[(.+)\] \((.+) VALUES \((N\’([a-zA-Z0-9-]+)\’\,.+)\)
  • INSERT \1 (\2 \nSELECT \3\nWHERE NOT EXISTS (SELECT 1 FROM \1 WHERE id = ‘\4′)\n

That’s it… Have fun!

05
Mar 2012
AUTHOR bradgearon
CATEGORY

Development, SQL

COMMENTS No Comments

Terraria Mod: tConfig-xinput

ss12

I’ve implemented my gamepad support in Terraria’s latest version via a tconfig modpack.

Check it out!

Enjoy!

04
Mar 2012
AUTHOR bradgearon
CATEGORY

Uncategorized

COMMENTS No Comments
TAGS

Number of records or rows in each table in a SQL database

SQL Server 2012

This is merely a repost from ex-Microsoft employe “jjameson” here

I’m sick of seeing these temporary table and cursor methods when I google this and I seem to be using this quite a bit lately. Here’s the query:

Also note that 2012 RC0 is available and its got some cool features.

SELECT
    sysobjects.Name
    , sysindexes.ROWS
FROM
    sysobjects
    INNER JOIN sysindexes
    ON sysobjects.id = sysindexes.id
WHERE
    TYPE = 'U'
    AND sysindexes.IndId < 2
ORDER BY
    sysobjects.Name

No further explanation necessary…

30
Jan 2012
AUTHOR bradgearon
CATEGORY

Development, SQL

COMMENTS No Comments

New Look! Godaddy is horrible, feedback.

SlowDaddy

Don’t ever use GoDaddy!

I apologize for the downtime and error messages the past few days. This site was getting overloaded, apparently that is easy with GoDaddy hosting. Thus I’ve moved to a new host.
The look has also been updated. What do you think?

Like the new look?

View Results

Loading ... Loading ...

28
Oct 2011
AUTHOR bradgearon
CATEGORY

Hosting

COMMENTS No Comments

Kirby’s Return to Dreamland Dolphin Working Fix

SUKE01-10

First of all I don’t encourage or support piracy in any way.  This is to be used with an official release of the game in a completely legal manner.

This is a dirty (Windows) fix for the issue here:  http://code.google.com/p/dolphin-emu/issues/detail?id=4932

Here’s to waiting for a more experienced Dolphin developer to fix it properly.

http://blog.bagearon.com/downloads/dolphin-3.0-188-dirty-kirby-x64.rar
http://blog.bagearon.com/downloads/dolphin-3.0-188-dirty-kirby-x86.rar
Here's the .patch:
http://blog.bagearon.com/downloads/4932-dirty.patch

A shot out to thank those who support the dolphin project, without 1080p wii I’d have to play some inferior console…  Right.  At least Nintendo puts together some great family games.

Enjoy!

26
Oct 2011
AUTHOR bradgearon
CATEGORY

Gaming

COMMENTS 4 Comments

Windows 8 developer preview and tablet hands on

windows-8-start

Per dev.windows.com:

You probably want to try out the preview release—and you can. Starting later tonight you can download the Windows 8 Developer Preview. This includes a 64-bit (x64) build with development tools to build apps and a 32-bit (x86) or 64-bit (x64) build without development tools. The releases also include a suite of sample applications (please note these are merely illustrations of potential apps, not apps that we intend to ship with Windows 8). The ISOs are linked to from http://dev.windows.com.

Upgrade from Windows 7 installation is not supported for pre-release code; only clean installs are supported. Reminder: this is a developer preview release and is not meant for production. It is not a beta release. We will be updating the release with various quality updates and drivers over the coming weeks/months just to exercise our overall update and telemetry mechanisms.

Looks awesome.

http://www.slashgear.com/windows-8-tablet-hands-on-13179144/

13
Sep 2011
AUTHOR bradgearon
CATEGORY

Development

COMMENTS No Comments

#build #bldwin Stream and News Windows 8 BUILD

build-windows-8-devices

Here’s what I’ve seen so far…

At about 8:15 AM Pacific:
CNET released a video on their website (apparently breaking NDA) of a new Samsung Windows 8 tablet being demoed (and given out to participants?) at the BUILD conference September 13, 2011.

http://www.pocket-lint.com/news/42040/samsung-windows-8-tablet-leaked
http://www.wp7connect.com/2011/09/13/leaked-videos-of-samsung-window-8-tablet-unboxing-build/

http://www.winrumors.com/windows-8-what-we-know-so-far/

Twitter:
Official http://twitter.com/#!/BuildWindows8

Hash tags:
#bldwin
#build

Live stream (Silverlight):
http://smooth.akamai.istreamplanet.com/msft/build/default.html

So far… bad ass!

Where’s the ARM build?  I’d love to grab another Samsung Galaxy 10.1 and throw Windows 8 on it…

13
Sep 2011
AUTHOR bradgearon
CATEGORY

Development

COMMENTS No Comments

Terraria Controller or Gamepad and extension support

ss1

UPDATE 03/04/2012: The download links have been repaired.  Sorry!

There comes a game, once in a blue moon, that envelops my time and thoughts both while a sleep and while I am awake. The Action RPG minecraft like experience in Terraria is just that. I’m rushing so I’ll keep this post thin – but perhaps will add my other thoughts when I’m not in such a hurry.

Bottom line – I originally decompiled and recompiled Terraria to include controller support. Then I figured it’d make more sense to write an extension. After some googling I found Michael Russell’s blog: Rom’s Rants and a customized game client for Terraria called RomTerraria. The developer in me decided to implement a plugin architecture using a quick and dirty managed extensibility framework MEF approach to implement gamepad support in the game.

Thus, grab the attached, extract it to the root of you Terraria install location – read Michael’s blog for information regarding the game client options, connect your controller, and dig my friend – while killing mobs like mad.

Here’s some details:

This is what I have so far. I’ll get it working better, just need to think about the math for that stick and add the menu selection, etc.

X, Y, B, Left shoulder, Left trigger, Right Shoulder, Right trigger – controls 1-7 on your hot bar in that order.
Start / Back for inventory.
Right or left stick to aim – left stick also moves though.
Push left stick for heal.
Dpad or Left stick to move.
Hold left trigger to aim precisely.
Pushing X will open doors, etc – same as right click (suggestion is to put a sword in that slot).

Please let me know any suggestions on better controls.

Donate and comment!


Download this: RomTerraria + Extensibility + Gamepad

Source: Source Code C#/XNA required

Links updated… Google docs viewer was lame…

11
Aug 2011
AUTHOR bradgearon
COMMENTS 7 Comments