Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - flyer

Pages: [1] 2
1
Non-Game Programming / Re: Undocumented Function TextGetText?
« on: July 29, 2014, 10:09:50 am »
I would also like to ask for the status of the aforementioned update...

2
Build Center / Re: OTA links from build center can't run in ios 7.1
« on: April 17, 2014, 03:27:26 am »
Just to update...

I contacted support and it seems that something needed to be changed (something about using https instead of http in the build centre).  So Tim kindly changed it and it works like a charm again!

I also sneaked in a quick question about if any updates are planned and he said that none were planned to his knowledge.

Hope this ties things up nicely with my question!

3
Build Center / Re: OTA links from build center can't run in ios 7.1
« on: April 15, 2014, 02:21:39 pm »
So to summarize, OTA is no longer available?  Will this be fixed or is it broken now in ios 7.1?

Any news from the developers?  Is DFSDK still being worked on or has further development been suspended?

I thought I read a post with someone asking the same question, but I think it might have been deleted as I can't find it any more.

A little info would be great on this...

Thanks

4
App Store / Publishing free app...
« on: October 23, 2012, 12:03:59 pm »
Hi there,

I have a question about publishing a free app via zimusoft.  Is it possible after a period of time for me to then "take control" of the app back for myself if I chose to create a paid version or add in-app purchases?

Also on an unrelated note...is the iPhone 5 / iOS6 supported by the current DFSDK version?  Will there be any updates in the near future for this?

Thanks,

f

5
How Do I...? / Re: In-App Purchases
« on: August 10, 2012, 07:04:46 am »
Thanks yet again for your reply Tim!

f

6
How Do I...? / In-App Purchases
« on: August 09, 2012, 04:29:28 am »
Hi again everybody,

I have a question about the way in which an in-app purchase would work.

The documentation with DFSDK seems to simply point me to the iTunes Connect website.  I don't have access to this as I do not have an iTunes developer account...yet.

Can someone give me a general idea as to how I should structure my app if I wanted to create a 'free' version with limited functionality and implement an in-app purchase system to unlock full functionality?  I was thinking I could create a global 'paid_version' bool variable and simply alter this based on the status of the purchase...is it THAT simple?

If you simply reply "get an iTunes developer account and see for yourself you cheapskate" I would understand, but I would like to have the app in a position where adding these extra things in would be quite straightforward instead of having to recode the whole thing because it works in a different way!

If anyone can help I would really appreciate it!

Thanks again,


Flyer

7
Non-Game Programming / Re: Undocumented Function TextSetSize()
« on: August 05, 2012, 03:12:45 am »
Hmmm, maybe a future function that will come in an update...We can only hope!

Thanks for the reply,


f

8
Non-Game Programming / Undocumented Function TextSetSize()
« on: August 04, 2012, 01:32:42 pm »
Hi again,

I was looking through the DragonFireSDK.h file and I noticed the following line:

Code: [Select]
int TextSetSize(int tx,int width,int height); // 04/26/11

I was wondering if this is available to use and what exactly it does?

I can take a guess, but does it resize the text itself or simply the visible portion of the text or something?

Thanks very much,


flyer

9
Non-Game Programming / Re: Undocumented Function TextGetText?
« on: July 24, 2012, 02:40:04 pm »
It's just me trying to be clever with an array containing a list of texts.

I tried altering the function to accept a simple int for field and the same error occured.

TextGetText seems to work OK (using both a simple int and a pointer to the int method) in that it correctly reads into the destination buffer the text contained within the text label, but something strange seems to be happening to my field_text variable and I can't see any reason for it unfortunately.

The purpose of the whole exercise is to try and detect the characters used and determine what the width of the text label will be so I can reposition/centre it so it looks good no matter what is typed into the field (centre justification).

Is there a way to do this automatically via the sdk?  If not I guess I will add it to the suggestions list!

Thanks for the reply

10
Non-Game Programming / Re: Undocumented Function TextGetText?
« on: July 24, 2012, 11:53:56 am »
Hi again,

I have tried using the TextGetText function now simply to read the contents of a text label into a char array 100 bytes long.

The only thing my function does (see code below) is create a char variable (field_text[100]) and then reads in the text from a given text label (for testing lets say the text is "abc").  I then set the field_text[99] position to 0.

From looking at the field_text variable immediately after doing the above, it seems that field_text has correctly accepted the "one" string.  The problem is after the function terminates I get the following message:

"Run-Time Check Failure #2 - Stack around the variable 'field_text' was corrupted."

Is there anything that I am doing wrong which seems obvious to anybody?  Is the TextGetText essentially identical to the EditGetText function?  I guess that from the previous reply there must be something different becuase you advised me to ensure that the final position of my receiving char array was NULL.

Make sure that the char array you use is 100 bytes long and after you call TextGetText() set the last char in the array to NULL.

Below is my code:

Code: [Select]
int Field_Width(int type, int *Field)
{
//0 = Edit / 1 = Text
int array_size(0), size(0), i;
char field_text[100];
if (type == 0) EditGetText(*Field,field_text);
else if (type == 1)
{
TextGetText(*Field,field_text);
field_text[99] = NULL;
}
return 0;
}

I pass in type = 1 and *Field represents a text label.

F

11
How Do I...? / Re: iPad Simulator Larger Than My Screen...
« on: July 24, 2012, 06:48:52 am »
jtincher227, I never received a reply about this...maybe my message didn't send properly.

I will maybe try and send it again.

F

12
Non-Game Programming / Re: Undocumented Function TextGetText?
« on: July 23, 2012, 02:20:27 pm »
Thanks for the reply Tim.

I tried as you suggested, but when I add a breakpoint and step through the code line by line, after calling TextGetText, I look at the field_text (MyBuffer equivalent) array individual positions and for some reason, all of the positions after 14 are not available (instead of showing the index and whatever value is in each position only a ? is seen).

Could this be related to the TextGetText function?

Code: [Select]
int Field_Width(int type, int *Field)
{
//0 = Edit / 1 = Text
int array_size(0), size(0), i;
char field_text[100];
if (type == 0) EditGetText(*Field,field_text);
else if (type == 1)
{
TextGetText(*Field,field_text);
field_text[99] = NULL;
}
array_size = strlen(field_text);
if (array_size == 0) return 0;
else
{
for (i = 0 ; i < array_size ; i++)
{
size += Arial24[field_text[i]] + 1;
}
}
return size;
}

The above is my function in which I try and use TextGetText.  I believe that everything else is OK and I simply pass in Type = 1 and a pointer to an int that is representing a 'Text' label (this label correctly contains the string "one").

Thanks for your help,


F

13
Non-Game Programming / Undocumented Function TextGetText?
« on: July 23, 2012, 04:32:02 am »
Hi there,

I've searched the forums and documentation, but nowhere does it mention the TextGetText function...

There is obviously one documented for EditGetText and NoteGetText, but this one does not seem to have any explanatory notes with it.

I actually think it is there but not used as my app does compile and the function seems to provide the expected output.

The problem is that I think it might be this that is causing the stack to become corrupted around the destination character variable when I use it.

I could be wrong on that, but I don't understand why I keep on getting this annoying stack corruption.  I read somewhere that an error can be caused by using strlen on a non-null character terminated string, but I took out my call to strlen and the same error occured...

Is TextGetText a function that is usable by us or is it something internal that should not be called?

Thanks for any help,


Flyer

14
How Do I...? / Re: iPad Simulator Larger Than My Screen...
« on: June 17, 2012, 06:55:54 am »
Thanks for the replies guys.

Sometimes a second monitor is an option, but sometimes not...

I will send support an email and report back with the response!

15
How Do I...? / iPad Simulator Larger Than My Screen...
« on: June 16, 2012, 08:52:50 am »
Hi there,

I couldn't find the answer to my question, so I have to ask here.

As the subject suggests, the majority of the screen of the iPad simulator is off the bottom of my screen.  I run at 1366x768 resolution and whilst I can move the simulator around my clicking and dragging on the edge of the iPad, whenever I try to move it up (so I can see the bottom third of the iPad screen (and the home button etc.), the virtual iPad springs back down so I can only click on the top two thirds of the screen.

Is there a way to make the simulator smaller so that I can view the whole iPad on screen at once?

I cannot get a higher resolution on my laptop than 768 vertically.  I could maybe try a portrait view for my screen but I don't want to have to change this setting everytime I recompile and want to test.

Any help is appreciated.

Flyer

Pages: [1] 2