.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 April 11th, 2010, 02:24 AM

mehrunes_dagon mehrunes_dagon is offline
Corporal
 
Join Date: Dec 2006
Location: Jotunheim
Posts: 66
Thanks: 7
Thanked 7 Times in 7 Posts
mehrunes_dagon is on a distinguished road
Thumbs down Re: combineMods.py

spent many hours playtesting a middle-age combination

noticed that the script gave two units the same number, so AI player hired a powerful unit for zero gold. The units are

"Chaos Warrior Chariot"

"Keeper of Secrets"

and the mod is "chaos undivided"

and the commands i ran where
===========================================
#!/bin/sh

target=april_1
#use fixed sitemod with correct incscale

sed -ie 's|/wyvern|/sitemod|g' sitemod.dm

for x in *.dm ; do
perl -pi -e s/\\x0d//g "$x"
done

sed -i -e 's:\\:/:g' angmar.dm
sed -i -e 's:^-.*::g' -e 's-farmlandfort-farmfort-' angmar.dm
sed -i -e s:goodmagiceader:goodmagicleader: themiskyra_MA1.35.dm

/distr/game/Dominions3/utility/combine_Mods.py/combineMods.py \
2 \
sitemod.dm \
BlackTome.dm \
diversity.dm \
CBcomplete_1.6.dm \
themiskyra_MA1.35.dm \
chaos.dm \
Warhammer\ Ogre\ Kingdoms.dm \
Warhammer\ Skaven.dm \
'Cinggis Qayan, Wrath of the Khans.dm' \
TombKings.dm \
$target

===================== end of commands ================
Reply With Quote
  #2  
Old April 11th, 2010, 09:51 AM

pyg pyg is offline
BANNED USER
 
Join Date: Jan 2009
Location: a small farm
Posts: 340
Thanks: 73
Thanked 103 Times in 42 Posts
pyg is on a distinguished road
Default Re: combineMods.py

Quote:
Originally Posted by mehrunes_dagon View Post
spent many hours playtesting a middle-age combination

noticed that the script gave two units the same number, so AI player hired a powerful unit for zero gold. The units are

"Chaos Warrior Chariot"

"Keeper of Secrets"

and the mod is "chaos undivided"
Interesting. If they have the same ID number then one should just overwrite the other. It shouldn't be changing other aspects (at least cost) of the unit. Can you post the .dm into this thread so I can try and figure it out?
Reply With Quote
  #3  
Old April 18th, 2010, 08:53 AM

mehrunes_dagon mehrunes_dagon is offline
Corporal
 
Join Date: Dec 2006
Location: Jotunheim
Posts: 66
Thanks: 7
Thanked 7 Times in 7 Posts
mehrunes_dagon is on a distinguished road
Default Re: combineMods.py

Quote:
Originally Posted by pyg View Post
Quote:
Originally Posted by mehrunes_dagon View Post
spent many hours playtesting a middle-age combination

noticed that the script gave two units the same number, so AI player hired a powerful unit for zero gold. The units are

"Chaos Warrior Chariot"

"Keeper of Secrets"

and the mod is "chaos undivided"
Interesting. If they have the same ID number then one should just overwrite the other. It shouldn't be changing other aspects (at least cost) of the unit. Can you post the .dm into this thread so I can try and figure it out?
not sure which .dm you want me to post.

Attempting to give them all, together with the script
Attached Files
File Type: 7z dm_s.7z (197.7 KB, 150 views)
Reply With Quote
  #4  
Old April 18th, 2010, 12:49 PM

pyg pyg is offline
BANNED USER
 
Join Date: Jan 2009
Location: a small farm
Posts: 340
Thanks: 73
Thanked 103 Times in 42 Posts
pyg is on a distinguished road
Default Re: combineMods.py

Quote:
Originally Posted by mehrunes_dagon View Post

not sure which .dm you want me to post.

Attempting to give them all, together with the script
That was enough information for me to figure it out. It seems like some of my negative lookahead assertions were broken. I think it's fixed now and updated in the first post.
Reply With Quote
  #5  
Old April 9th, 2010, 04:29 PM
Gregstrom's Avatar

Gregstrom Gregstrom is offline
Major General
 
Join Date: Sep 2007
Location: Scotland
Posts: 2,066
Thanks: 109
Thanked 162 Times in 118 Posts
Gregstrom is on a distinguished road
Default Re: combineMods.py

Agreed.
__________________
A Beginner's guide to Lanka

Want to use multiple mods? The Mod Compatibility Index might be useful.
Reply With Quote
  #6  
Old April 16th, 2010, 11:11 PM

nordlys nordlys is offline
Corporal
 
Join Date: Jun 2008
Posts: 86
Thanks: 4
Thanked 5 Times in 4 Posts
nordlys is an unknown quantity at this point
Default Re: combineMods.py

Uh... can we commoners hope for a compiled executable version?
Reply With Quote
  #7  
Old April 17th, 2010, 01:01 AM

pyg pyg is offline
BANNED USER
 
Join Date: Jan 2009
Location: a small farm
Posts: 340
Thanks: 73
Thanked 103 Times in 42 Posts
pyg is on a distinguished road
Default Re: combineMods.py

Quote:
Originally Posted by nordlys View Post
Uh... can we commoners hope for a compiled executable version?
This is just a script so all you need is to have python installed (default on all great OSes). In terms of usability this particular script just emulates this perl script.
Reply With Quote
  #8  
Old April 17th, 2010, 01:09 AM

nordlys nordlys is offline
Corporal
 
Join Date: Jun 2008
Posts: 86
Thanks: 4
Thanked 5 Times in 4 Posts
nordlys is an unknown quantity at this point
Default Re: combineMods.py

I have xp, and have no clue how to use it.
Reply With Quote
  #9  
Old April 17th, 2010, 01:23 AM

nordlys nordlys is offline
Corporal
 
Join Date: Jun 2008
Posts: 86
Thanks: 4
Thanked 5 Times in 4 Posts
nordlys is an unknown quantity at this point
Default Re: combineMods.py

OK, i even trashed my system with Python, and that's what I get:

C:\Program Files\dominions3\mods>combineMods.py 1 ArgaDis.dm Avernum.dm test
File "C:\Program Files\dominions3\mods\combineMods.py", line 13
"""
^
SyntaxError: invalid syntax

edit: nevermind, I needed a 2.x Python version rather than 3.x

Last edited by nordlys; April 17th, 2010 at 01:35 AM..
Reply With Quote
  #10  
Old April 17th, 2010, 03:05 AM

nordlys nordlys is offline
Corporal
 
Join Date: Jun 2008
Posts: 86
Thanks: 4
Thanked 5 Times in 4 Posts
nordlys is an unknown quantity at this point
Default Re: combineMods.py

I am now trying to combine a bunch of nation mods (Arga Dis, Avernum, Themiskyra and the 6 Warhammer nations along with endgame diversity and worthy heroes), and the resulting mod always gives me "name2spell" error until I drop half of these mods from the mix (the various warhammer ones typically cause mischief). What am I doing wrong? Or there is a total mod size limit?
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:51 AM.


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