.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Digital Eel > Weird Worlds: Return to Infinite Space > Scenarios and Mods

 
 
Thread Tools Display Modes
  #1  
Old June 21st, 2008, 01:17 PM

lexicat lexicat is offline
Private
 
Join Date: Aug 2007
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
lexicat is on a distinguished road
Default Guidelines for creating an item?

Hiya!

So: I am interested in creating some new items. The modmaker's guide to the galaxy is missing a section on creating items, specifically, on the graphics requirements, files, etc. for items. Is there a thread addressing this, or shall we collaborate to produce one?

Lexicat
  #2  
Old June 23rd, 2008, 02:42 PM

clomaka clomaka is offline
Corporal
 
Join Date: Nov 2007
Location: Seattle, WA
Posts: 104
Thanks: 1
Thanked 2 Times in 2 Posts
clomaka is on a distinguished road
Default Re: Guidelines for creating an item?

They're pretty straight-forward gfx/file wise, the tricky part is the coding for objects that do things - it's best to just scour what's already out there and copy that code, making small changes untill it does what you want it to.

graphics (in the graphics/items folder):
large:128x128
small:64x64
I prefer to use 32-bit pngs so that the border is masked off in the image, but if you use jpgs, you'll have to create an ini file for each image (named exactly the same, but with .ini instead of .jpg) that specifies what mask image to use. There's plenty of items out there that do this to use as an example.

definition file (in the gamedata\items folder):
(item type)_(filename).ini
(The naming convention's just a suggestion)
inside:
NAME (name displayed in title bar)
NAM2 (name for use in messages)
ICON items/(small graphic)
GFXP items/(large graphic)
FLAG (flags to control when it appears)
DIST (controls the type of planet/star it appears on)
TEXT (description)
COST (point value and type - relates to cost of item and points gained if you have it when you retire)
TYPE (defines type of game object)

Add your item into GameData/game.ini.
Use the definition ini filename (minus the .ini)

Most of this is layed out in Weird Worlds\default\gamedata\items\!item_files.txt
  #3  
Old June 23rd, 2008, 07:02 PM

lexicat lexicat is offline
Private
 
Join Date: Aug 2007
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
lexicat is on a distinguished road
Default Re: Guidelines for creating an item?

Thanks oodles! Def triff.

Lexicat
  #4  
Old August 1st, 2008, 11:10 AM

Major_Mapleleaf Major_Mapleleaf is offline
Private
 
Join Date: Jul 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Major_Mapleleaf is on a distinguished road
Default Re: Guidelines for creating an item?

Is there a summary of item flags anywhere? I don't know what the flags are, or what they do, so it's kind of tricky to make an item do what I want it to do.
  #5  
Old August 1st, 2008, 12:13 PM

Major_Mapleleaf Major_Mapleleaf is offline
Private
 
Join Date: Jul 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Major_Mapleleaf is on a distinguished road
Default Re: Guidelines for creating an item?

Ha, ha. I found the items text file in the directory. It explains the flags, but I'm wondering if there is a way to make this item appear in every game you play. The item I'm working on is an important quest item, so I need it to appear in every game at any random planet. None of the flags seem to accomplish this. Thanks.
  #6  
Old August 1st, 2008, 12:17 PM

lexicat lexicat is offline
Private
 
Join Date: Aug 2007
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
lexicat is on a distinguished road
Default Re: Guidelines for creating an item?

You could make a separate quest that simply put the necessary item on a planet with the flag always.

Lexicat
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:48 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.