.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 > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old June 30th, 2007, 01:52 PM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Newlines problem

So, I'm a Windows user and a Dominions modder. I've never managed to get newlines working properly.

"3.2 #description &#8220;<piece of text>&#8221;
A description of what the mod does, who has created it
and so forth. Use two newlines in a row to start a new
paragraph.
"

The bold part doesn't work for me. I've long thought this to be due to using Notepad to do my mods, and it being incompatible with whatever unix/linux/mac newline type Dominions looks for. However, I finally tried to get the feature working by installing a different text editor (VIM - Vi IMproved 7.1), and still can't get them to work. Just what am I supposed to do with them? I've got this idea for a mod which is based heavily on descriptions, and I'd like to use a rather special format for these descriptions, and I need the newlines to work for that.

The project in question isn't yet in production or anything, I'm just checking a few sources to see if I could manage to pull this off. I've got no idea for graphics or for actuals stats as of yet, nor even any good ideas for Dom representations fitting the descriptions, and as I'm in the army now, and will have lots of responsibility in about a week, I won't have the time to start doing this for a long, long time. This might even have to wait for January.

Any way, here's a teaser. It'd be the description for a unit armed with some kind of magical weapons, which might or might not have one or more of the following abilities: poison of some sort, slay magic as Elf Bane, slay magic as Moon Blade, slay giants as Short Sword of Oberführer, decay effect (what the spell 'Bleed' causes), Additional Weakness, disease.

Heavily edited and cropped, but still recognisable as a variation of parts of Rune IX of Kalevala, Origin of Iron.
Quote:

This, the origin of iron,
and of steel of light blue color.

Evil Hisi's bird, the hornet,
while the steel was being tempered,
brought the blessing of the serpent,
brought the venom of the adder,
brought the poison of the spider,
brought the stings of all the insects,
mixed them with the ore and water,
while the steel was being, tempered.

Ilmarinen, ancient blacksmith,
dipped the iron into water,
water mixed with many poisons,
thought it but the wild bee's honey;
thus he formed the steel from iron.
When he plunged it into water,
water mixed with many poisons.
When be placed it in the furnace,
angry grew the hardened iron,
broke the vow that he had taken,
ate his words like dogs and devils,
mercilessly cut his brother,
madly raged against his kindred,
caused the blood to flow in streamlets
from the wounds of man and hero.

This, the origin of iron,
and of steel of light blue color."
Reply With Quote
  #2  
Old June 30th, 2007, 02:23 PM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: Newlines problem

I never got it working with notepad either, but that hasn't really caused me any problems.
Reply With Quote
  #3  
Old June 30th, 2007, 02:53 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Newlines problem

I think it might be because a dos program doesnt actually do 2 newlines. Its does newline/carriage-return combinations which might be causing the dom3 program to see it differently.
Just guessing.

You might be able to beat that by using the wordpad program which seems able to handle unix style files better than notepad
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #4  
Old June 30th, 2007, 02:56 PM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: Newlines problem

I've tried wordpad, but that didn't seem to work either. Should I choose some spesific kind of a text file from the list of available filetypes? As in, is there a *nix version of .txt?
Reply With Quote
  #5  
Old June 30th, 2007, 03:05 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Newlines problem

Have you tried four newlines?

If you're looking for a good text editor under Windows, I can recommend Textpad. If you are looking for something free, I think Notepad++ is. Both should be able to load and save text in *nix format.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #6  
Old June 30th, 2007, 04:01 PM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: Newlines problem

Four newlines on Vim didn't work. I'll try Notepad++.
Reply With Quote
Reply

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 11:39 PM.


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