.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 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #1  
Old May 15th, 2004, 02:56 AM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Modding question/request

Is there a way to insert new-line characters into mod strings?

I'm trying to create a good entry for #summary, which for the unmodded nations includes lists with multiple lines:

Race: Humans
Military: Infantry, Trained Farm Animals
Magic: Nature
Priests: ...

But I don't know how to make each line start on a new line, so it doesn't look the same. "\n" didn't do anything special...

Anyone know how?

If there's no way, I'd like to request it.

PvK
Reply With Quote
  #2  
Old May 15th, 2004, 03:21 AM
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: Modding question/request

The same thing came up for the maps description. There was an answer. Something about a unix return instead of a DOS one.

[ May 15, 2004, 03:47: Message edited by: Gandalf Parker ]
__________________
-- 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
  #3  
Old May 17th, 2004, 12:37 AM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default Re: Modding question/request

Two 'newline' in a row will make the next word appear on the next row. There must not be any other control characters between these newlines, so make sure to use a Dominions compatible editor like emacs for linux . Windows editors often put some extra stuff at the end of each line so beware of those.

It would look like this

".............................

Race: .........

Military: ........."
__________________
http://www.illwinter.com
Reply With Quote
  #4  
Old May 17th, 2004, 01:50 AM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Modding question/request

Excellent - thanks Johan!

PvK
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 02:52 PM.


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