Icon Editor

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Icon Editor

Postby oase » Wed Jan 31, 2018 9:54 pm

Two short questions about using icons:

1. I tried to work with an icon editor called xiconeditor.com for example and others but I get always the same bug message: https://www2.pic-upload.de/img/34762212/Unbenannt.jpg Although it is a .ico file and in the correct size (32 x 32) it does not work - why?

2. Before players get to another game chapter in my adventure all icons should dissappear. Is it possible to delete all items at one time and if, how can i reach this?
art is political. art is social. art works united! beeing creative is pure spirituality. so - let´s do it! and never forget: life ... is a wonder : )
oase
Active Member
 
Posts: 86
Joined: Sun Jun 27, 2010 1:00 am

Re: Icon Editor

Postby reneuend » Thu Feb 01, 2018 3:59 am

I use Imagicon by http://www.deviouscodeworks.co.uk
You build your image at the correct size and then just drag and drop it to Imagicon.

I'm not sure about using icons within the game. I've never done this and didn't think it was supported. I've always used images as hotspots. Is this what you are trying to do?
I used Icons (ico files) for placing on the user's Windows desktop.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2719
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Re: Icon Editor

Postby oase » Mon Feb 05, 2018 12:18 am

Oh, sorry, I meant the icons of the inventory. So far, I've made the intventory icons with the icon editor under "external programs" in adventure maker, but now I wanted to try another external program for to do that!

Now my second question is also a little bit more cleary, I think: Is it possible to let all icons of the inventory be deleted at one time (with the beginning of a new game chapter)?

Thanx for helping me!!
art is political. art is social. art works united! beeing creative is pure spirituality. so - let´s do it! and never forget: life ... is a wonder : )
oase
Active Member
 
Posts: 86
Joined: Sun Jun 27, 2010 1:00 am

Re: Icon Editor

Postby Candle » Mon Feb 05, 2018 12:53 am

Just start the next page with no icons on it.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3058
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Re: Icon Editor

Postby reneuend » Mon Feb 05, 2018 3:17 am

Here is a routine you can use to hide all inventory items:

Based on a routine for hiding a given item, I wrote the following subroutine. I haven't tested it, but it should work.

Code: Select all
Sub HideAllItems()
  For Each X in InventoryItemObject
    X.Visible = false
  Next
End Sub


Let me know if you still have issues.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2719
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Re: Icon Editor

Postby oase » Sun Dec 15, 2019 12:52 am

The feeded code doesn`t work - did I something wrong :?:
Attachments
BUG REPORT.jpg
BUG REPORT.jpg (57.67 KiB) Viewed 387 times
art is political. art is social. art works united! beeing creative is pure spirituality. so - let´s do it! and never forget: life ... is a wonder : )
oase
Active Member
 
Posts: 86
Joined: Sun Jun 27, 2010 1:00 am

Re: Icon Editor

Postby reneuend » Sat Dec 21, 2019 2:46 am

The code you pasted in the ADVANCED tab is a routine. It should go in the "PROCEDURES" area (see button below from the ADVANCED tab)
From the ADVANCED tab, you would enter a call to the routine like this:

HideAllItems()
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2719
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Re: Icon Editor

Postby oase » Sat Dec 21, 2019 10:39 pm

Okay, I tried like this 'HideAllItems()'. Now the items are unvisible but still take their old place anyway, so that I have a black placeholder where no new collected item can stand.
art is political. art is social. art works united! beeing creative is pure spirituality. so - let´s do it! and never forget: life ... is a wonder : )
oase
Active Member
 
Posts: 86
Joined: Sun Jun 27, 2010 1:00 am

Re: Icon Editor

Postby reneuend » Tue Dec 24, 2019 11:47 pm

Then you need to remove the items from inventory but keep track of them.
When you want them back, Add them back in.

The following routines should help.

Action.AddItem "ITEM_NAME"
Action.RemoveItem "ITEM_NAME"

Other useful routines you could add to the Procedures area:

Code: Select all
'check if item is in the inventory
Function HasItem(ItemName)
HasItem = False
For Each X in InventoryItemObject
If X.Tag = ItemName Then
HasItem = True
End If
Next
End Function 'HasItem


Code: Select all
'Be sure there are no duplicate items in inventory. If so, remove them.
Sub RemoveDuplicateInstances(itemname)
  for each X in InventoryItemObject
    if X.tag=itemname then itemcount=itemcount+1
  next
  if itemcount>1 then
    Do until itemcount=1
      Action.RemoveItem itemname
      itemcount=itemcount-1
    Loop
  end if
end sub
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2719
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Re: Icon Editor

Postby oase » Sat Dec 28, 2019 5:07 pm

Now I simply entered "Action.RemoveAllItems" and it works :D
art is political. art is social. art works united! beeing creative is pure spirituality. so - let´s do it! and never forget: life ... is a wonder : )
oase
Active Member
 
Posts: 86
Joined: Sun Jun 27, 2010 1:00 am

Re: Icon Editor

Postby reneuend » Mon Dec 30, 2019 2:55 am

:mrgreen: :mrgreen: :mrgreen:
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2719
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron