Search Results
Searched for posts by Planplan in all forums

Showing results 21 - 30 out of 31 total
Modify your search
Posted by Planplan, Mar 28, 2008 at 12:33 am
Finished a script able to read the graphics files and apply the colors exactly like IVaN do.
Not useful right now, but will be useful for the future (or maybe to quickly test how color render instead of restarting the game each time).

Here a sample picture rendered by the script : http://helltgivre.free.fr/ivan/color.php
Posted by Planplan, Mar 27, 2008 at 2:54 pm
I think that what they try to say, is that the Tips, Tricks and Secrets section isn't really for fun, more for known fact Try in the Discussion section, or Spam, maybe Fiction, depending of how you turn it

I don't think they intend to offense you
Posted by Planplan, Mar 27, 2008 at 11:39 am
Here for you nukes, added it to my first message. Nice people always get what they want
Posted by Planplan, Mar 26, 2008 at 7:22 pm
Here a small piece of code I made to allow Helmet, Cloak, Body Armor and Belt to add Arm Strength, Dexterity, Leg Strength and Agility. It's maybe a bit dirty, but it work.
The enchant bonus is divised by 2, because the bonus value is added to each arm or leg. A +1 Dexterity bonus will add +0.5 Dexterity to each arm so (could be invisible for a +1 item so, unless you're Dexterity is already a bit trained).
---------- bodypart.h ----------

ITEM(bodypart, item)
{
 public:
  ...
  item* GetExternalHelmet() const;
  item* GetExternalBelt() const;
  ...
};

ITEM(arm, bodypart)
{
 public:
  ...
  void ApplyStrengthBonus(item*);
  void ApplyDexterityBonus(item*);
  ...
};

ITEM(leg, bodypart)
{
 public:
  ...
  void ApplyStrengthBonus(item*);
  void ApplyAgilityBonus(item*);
  ...
};


---------- bodypart.cpp ----------

item* bodypart::GetExternalHelmet() const { return GetHumanoidMaster()->GetHelmet(); }
item* bodypart::GetExternalBelt() const { return GetHumanoidMaster()->GetBelt(); }


void arm::CalculateAttributeBonuses()
{
  ...
  if(Master)
  {
    ...
    ApplyStrengthBonus(GetExternalHelmet());
    ApplyStrengthBonus(GetExternalCloak());
    ApplyStrengthBonus(GetExternalBodyArmor());
    ApplyStrengthBonus(GetExternalBelt());
    ApplyDexterityBonus(GetExternalHelmet());
    ApplyDexterityBonus(GetExternalCloak());
    ApplyDexterityBonus(GetExternalBodyArmor());
    ApplyDexterityBonus(GetExternalBelt());
  }
}

void leg::CalculateAttributeBonuses()
{
  ...
  if(Master)
  {
    ...
    ApplyStrengthBonus(GetExternalHelmet());
    ApplyStrengthBonus(GetExternalCloak());
    ApplyStrengthBonus(GetExternalBodyArmor());
    ApplyStrengthBonus(GetExternalBelt());
    ApplyAgilityBonus(GetExternalHelmet());
    ApplyAgilityBonus(GetExternalCloak());
    ApplyAgilityBonus(GetExternalBodyArmor());
    ApplyAgilityBonus(GetExternalBelt());
  }
}


void arm::ApplyStrengthBonus(item* Item)
{
  if(Item && Item->AffectsArmStrength())
    StrengthBonus += Item->GetEnchantment() / 2;
}

void arm::ApplyDexterityBonus(item* Item)
{
  if(Item && Item->AffectsDexterity())
    DexterityBonus += Item->GetEnchantment() / 2;
}

void leg::ApplyStrengthBonus(item* Item)
{
  if(Item && Item->AffectsLegStrength())
    StrengthBonus += Item->GetEnchantment() / 2;
}

void leg::ApplyAgilityBonus(item* Item)
{
  if(Item && Item->AffectsAgility())
    AgilityBonus += Item->GetEnchantment() / 2;
}
Tell me if you encounter bugs, I'll edit this code, and feel free to post your own.
Attached files
enchant.zip ()
Posted by Planplan, Mar 24, 2008 at 7:58 am
A small util I found on the official board:

holybanana wrote
If either one of you is a win user, there's a program I made for drawing rooms that appear the same in every game with a mouse. It's a horribly old DOS exe but it may still work, at least it does for me. I uploaded it at

http://ivan.sourceforge.net/ivanmap/IvanMap.exe

Sorry that there is no Unix version, and there probably won't be a port as I can't even compile the source any more.

Note that I had to go to program properties and set it to start in full screen to make it work under WinXP. Otherwise only half of the screen was shown. Another way is to start command prompt, go to full screen by pressing Alt+Enter and starting the exe there.

Probably the best way to use this is to draw a room, then press Alt+Enter to go to window mode and use the window edit options to select and copy a portion of the screen to the script file. For instance this room took twenty seconds to make with this method:

#########+############
#......#.......#.....#
#......#.......#.....#
#......#.......#.....+
#......#.......#.....#
#......#..############
########..#..........#
#......#..#####......#
#......#......#......#
#......#......#......#
#......#####..#......#
#..........#..#......#
#..........#..#......#
######################

Hope it shows correctly in your browser.
Posted by Planplan, Mar 20, 2008 at 11:42 pm
Here a template for the materials (I tried to add #if but I ended by figuring that the needed extension isn't installed ^^')

As you could see, no need to write the material name, plus, "Flexibility", "Hardens to", "Req Int" and "Notes" are facultatives (as specified in the script). Remove the unused line, the template will automatically add the default value. Don't forget the double brackets when adding the "Deity" and "Hardens to"!

Here the blank code :
{{Materials
|str=
|flex=
|dens=
|deity=
|hard=
|int=
|notes=
}}

And an example, with no notes (Phoenix Feather) :
{{Materials
|str=80
|flex=39
|dens=200
|deity=[[Silva]]
|hard=[[Dragon Hide]]
|int=20
}}
Edit (27 March 200 : Added the {{Spoiler}} in the Materials template and added the "Notes" entry.
Posted by Planplan, Mar 19, 2008 at 9:52 pm
I'm working on this for a couple days, it's now usable, even if it still miss a lot of things.

To use it, just draw the layout of your dungeon in any drawing program capable of saving a PNG, 1 pixel for 1 tile of the map. Each color you use will be a different material/item/other, for the moment, you could only use 25 color plus white (white is the default tile, the empty one, displayed as a dot like in the scripts).

I know it's ugly, miss lot of features, not very secured, but, I'll correct all of this

Here for the link!
http://helltgivre.free.fr/ivan/

And an example of the result (something you'll reconize )
http://helltgivre.free.fr/ivan/code.php
Posted by Planplan, Mar 16, 2008 at 10:29 pm
Ok, let's clarify the things...
Only the people behind the GPL (the dev & such) could ask a lawyer to resolve this copyright problem, maybe the people who have added something in the source lampshade is using (Ighalli for exemple in the CVS version, and only for the part he was involved in I think). Nobody else. You could tell the dev about this problem, but they are the one who choose.

So, without any dev asking lampshade to release his modified source, it's useless arguing...

And last... Sorry for my english
Posted by Planplan, Mar 16, 2008 at 3:20 pm
All informations are here
Posted by Planplan, Mar 14, 2008 at 11:10 am
My computer is dead, and I have to wait for one week before I can retrieve the data on my hard disk (it's a laptop). I'll see with blob if we could release it in the state it is. It could maybe boost me a bit to finish the most uninteresting part (because the graphic part is already done by blob ^^')
I'll post the modified source anyway, or something if it could give some people ideas and help in modification.