Jump to content


Abyssaldemon

Member Since 10 Nov 2009
Offline Last Active Jan 01 2013 02:10 AM

Topics I've Started

Can Not Purchase HTML5

04 April 2012 - 11:00 PM

Hi guys

I recently came into the funds to purchase HTML5, went to the bank deposited into my card, and tried to purchase. Google Wallet keeps declining my card, even though there is enough cash in it. I have tried it with three different cards as well, even a different bank account.

Has anyone else had this problem, or know of a solution?

I really want to get this quickly so i can hop on the Studio discount bandwagon.

Thanks for any help!

Problem with Queues

03 March 2011 - 01:06 AM

Recently I decided to add the function of drag-able objects into my inventory engine. Everything went smoothly, and I am very happy with the result. Their is only one problem left however. Inside the code, the first inventory slot is default set as minimum to be compared to. However when it is closer, it still occupies the first slot, whether or not if it it the closest unoccupied slot or not. I know what the problem is, I just don't know how to fix it.

The code that finds the closest unoccupied slot is as follows:
open_slots=ds_queue_create();

var i;
for(i=0;i<=19;i+=1)
{
if inven[i,0]=false {ds_queue_enqueue(open_slots,i)}
}

total_slots=ds_queue_size(open_slots)

for(i=0;i<=total_slots;i+=1)
{
dist[i,0]=ds_queue_head(open_slots); 
dist[i,1]=point_distance(mouse_x,mouse_y,inven[ds_queue_head(open_slots),1],inven[ds_queue_dequeue(open_slots),2]); 
}
//////////////////////////////////////
nearest=dist[0,1];
//////////////////////////////////////
for(i=0;i<=total_slots;i+=1)
{
if dist[i,1]<nearest {nearest=dist[i,1];}
}

for(i=0;i<=total_slots;i+=1)
{
switch(nearest)
{
case dist[i,1]:nearest_slot=dist[i,0];break;
}
}

x=inven[nearest_slot,1];
y=inven[nearest_slot,2];

i=nearest_slot;

inven[i,0]=inven[argument0,0];
inven[i,3]=inven[argument0,3];
inven[i,4]=inven[argument0,4];
inven[i,5]=inven[argument0,5];
inven[i,6]=inven[argument0,6];
inven[i,7]=inven[argument0,7];
inven[i,8]=inven[argument0,8];
inven[i,9]=inven[argument0,9];

inven[argument0,0] = false
inven[argument0,3] = ''
inven[argument0,4] = false
inven[argument0,5] = 0
inven[argument0,6] = ''
inven[argument0,7] = ''
inven[argument0,8] = ''
inven[argument0,9] = 1

current_inven=i;

ds_queue_destroy(open_slots);

The value inven[*,0] is a boolean value if the inventory spot occupied. The first part of the array is the number slot hence the for() loop.

The problem is in the separated by comments line. It needs to be changed to the first unoccupied spot, not the first array value.

Things I have tried:
-changed line nearest=dist[0,1]; ==> nearest=dist[ds_queue_head(open_slots),1]; this however does not work because i end take away values in the previous for() loop
-then i tried nearest=dist[ds_queue_dequeue(open_slots),1]; and changed the last function in the above for() loop to ds_queue_head(); ==> didnt work, not sure why

If you have any ideas on how I might be able to fix this I would greatly appreciate it. Thanks for your time.

Simple Bank 1.0

13 April 2010 - 09:46 PM

  • Title:  Simple Inventory 1.0
  • Description:  This is a small example of a money only banking example. It also includes a loan example, with interest. You are able to deposit, withdraw, take out new loans and pay back loans to the bank.
  • GM Version:  GM8
  • Registered:  No
  • File Type: .gmk
  • File Size:  12.6 KB
  • File Link:  Download Here
Additional Info
I made this example for an engine to work a cash bank or a money lending service. It does use show_message() quite a lot, you should not look at this though. These are simply to show the ease and effectivness of the engine. Currently it is extremely simple with little features. I want to expand it more, but I want your ideas so I can keep going with the wishes of the audience.

Features in 1.0:
  • Withdraw
  • Deposit
  • Loans
  • Working Interest and debt
  • Several Caps to keep everything working (no negative funds, or extra cash)

Features soon to come:
  • Nicer Interface
  • Starting Up a bank account
  • Safety Deposit Boxes
  • Interest on Deposit
  • Checks
  • Loan time limits
  • Repayable debts
  • Total Worth Counter
  • Give me your suggestions!

Special Thanks To:
  • Joshua Sigona - Bug Report
  • Mr. Munchkin - Bug Report

So, please give it a try, and reply with a message any ideas you have for me to implement into the engine. If you start simple you can expand bigger and better. Keep It Simple Stupid.

Patching A Game

21 February 2010 - 06:41 PM

Disclaimer: After several hours scouring the internet, manual and forums.

Is there a way to patch your games? There is the MDU updater however i am not quite sure how to use this and I am unable to find a tutorial for it. Other things I have found all have broken links or download the entire game again. This is extremely non-beneficial to me because of a rather large GM file. I was thinking about .gmres files. If there was a way to patch your game using these it would be extremely easy. Making a gmres file patch with just the updated or new things would be much easier then making people download the entire game again. I couldn't find any way in the manual to do this however. So my question is... Is there a way to patch a game in using a .gmres file?

Thanks for all replies,
Abyssaldemon

Gmc Extension

08 December 2009 - 10:20 PM

I came across this while surfing the net. Does any one know if this is a valid firefox extension before i go and install it. Or if it is even for the gmc? Thanks for any answers.
http://mac.softpedia...Extention.shtml
(Just a link not a download^^)