Written by ina on Wednesday, 18 of August , 2010 at 9:17 pm
Tags: sdk visual studio
The old Tool > Options menu from earlier versions of Visual Studio is no more in 2010… The VC++ directory can be found @ View > property page (shift F4).
When tragic events happen, I have this tendency to go into API-craze. Perusing API’s are like unwrapping a new birthday present and checking out the specs and seeing what it can do - it can be sufficiently fascinating enough to ward off sorrow or tragedy-confusion. For fun, I went ahead and poked at the Google Checkout API.
The PHP Google Checkout sample code is very bulky, far more than I’d need for my virtual goods transactions, so here’s a simplified API - just the basics you’d need for processing your digital goods: Google-checkout-basic-digital-goods
Usage can’t be simpler… The easy-peasy way is to create your $xml post by beginning with xmlTop() and ending with xmlBot(), then concatenate a xmlItem() in between those two, for each item you wish to have. xmlItem() takes the arguments title, description, price (USD), and quantity, respectively.
$xml=xmlTop().xmlItem('Appleberry Crispz','funky applethangs that melt virtually in your mouth!',1,10).xmlItem('Blueberry Blisset','get hacked to virtual oblivion by blueberries in the Carribean!',0.50,5).xmlItem('Cranberry Chickens','chickens that taste like virtual chickens',21,1).xmlItem('dowager dame virtua','virtual dowagers on a stik',1000,5).xmlBot();
curlIt(id,key,$xml,(0 for production | 1 or default for sandbox)) returns the result, which you’d then process using parsedArray(parseReturn($xml)) to get an array with two entries: array(serial number,redirect-url).
For safety, I’d store the serial number into a db with varchar(99), as Google hasn’t published a maxchar cap, at least not according to Jacob Moon (let’s not even think about Twilight - but, zOMG, what a name!).
Redirect your user to the second entry in that array, and they’re ready to buy!
So, in traditional 3d programs, you have the ability to group entire objects no matter how big or how many “prims.” You don’t have that freedom on SL, due to limitation in link distances and also max prims per linked object.
But, it’s relatively easy to “select only my objects” and drag a bounding box around the building you want to move. But, in a citysim setting with buildings sardine-squeezed next to each other, precision selection might be a pain.
Enter one other use of my SLregapi. Use it to register an Ina alt per building/sector, so that if I ever have to move it, all I’d have to do is log into that alt and drag a bounding box to “select only my objects.”
The other day I contacted Concierge about whether the TOS max avatar count applied to RegAPI accounts. The reply I got stated that TOS doesn’t cover RegAPI yet.
So, here are the accounts used to rez the parts of my upcoming city sim build:
- Ina Gears (roads)
- Ina Looming (basement stuff)
- Ina Caudron (Blue District, except for SLface)
- Ina Hotshot (Red District, main entrance)
- Ina Westland (Red District Round Building)
- Ina Siemans (Red District hotels & resorts)
- Ina Hereter (Red District Skin City Art Museum)
- Ina Nestler (Red District WTC tall)
- Ina Clawtooth (Red District mass generica)
- Ina Major (the heavens)
- Ina Cliffhanger (The Sky Globe globe thingies and also empire state bottom foundations)
- Ina Ireland (Sky Globe Main)
Category: API, Amusing, Builds, Projects, Tutorials
Written by ina on Sunday, 3 of February , 2008 at 1:08 am
Tags: regAPI, secondlife
Today I got bored and whipped up a managed solution to RegAPI. I have a fetish with registering domains for my weekend projects, so as you’ve guessed, I snagged SLRegAPI.com
It’s just a simple system that automates the whole RegAPI setup so that even designers who can’t code can have a managed backend (served by me) to post to. Trivial stuff.
Category: API, Projects