| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
Welcome to Civilization Fanatics' Center. You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#41 | |
|
King
Join Date: Mar 2011
Location: Orange County, California, U.S.A.
Posts: 626
|
Quote:
I'm playing with adding unit art in SQL. I may be slightly out of my depth, but I think I get everything that's going on.Unfortunately, CiV doesn't seem to pick up the new art files from my mod, and I just get spearmen art (which is what happens when the fxsxml isn't found). I'm wondering whether this is also an issue with landmarks. Have you tried using art introduced by a mod? Even just a copy of the vanilla art with a renamed fxsxml? ...The weird part is, when I activate a unit mod using the XML method and look at Civ5DebugDatabase.db, the entries from Civ5ArtDefines_UnitMembers.xml aren't injected into the corresponding ArtDefine tables. Worse, I can't even find where in the database the entries in Civ5ArtDefines_Units.xml are supposed to go (e.g., Formation, DamageStates, MemberCount), let alone where they ended up. Is there another database besides the ones in the cache folder?
__________________
-n. City States Leaders Randomize City Names Smaller Landmarks for R.E.D. Modpack Swiss Guard Gray/Sharkmouth Gunship Misc. Units
|
|
|
|
|
|
|
#42 | ||
|
Deity
Join Date: Jun 2008
Posts: 2,067
|
Quote:
Quote:
One note: since I've been playing around with this stuff I've checked the "Reload Landmark System" in the mod properties. There is also a "Reload Unit System". In the past, I always had the former unchecked (per advice from other modders) and the latter checked. But I have no idea what these do or are intended to do. |
||
|
|
|
|
|
#43 |
|
King
Join Date: Mar 2011
Location: Orange County, California, U.S.A.
Posts: 626
|
Pazyryk,
Can you post the rest of your SQL code, i.e., for tables Builds, Improvements, and Unit_Builds -- did you have to use BuildFeatures or Improvement_ValidTerrains?
__________________
-n. City States Leaders Randomize City Names Smaller Landmarks for R.E.D. Modpack Swiss Guard Gray/Sharkmouth Gunship Misc. Units
|
|
|
|
|
|
#44 |
|
Deity
Join Date: Jun 2008
Posts: 2,067
|
To add an improvement, you do need to add it as a Unit_Builds. You also need to add some terrain types to Improvement_ValidTerrains to be able to build it anywhere. BuildFeatures is only needed if you want the improvement type to "autochop" a feature.
I don't want to post that particular SQL because I'm trying to keep my mod a bit of a secret, for now at least. (I could post some example SQL if that is what you're looking for. I actually don't use xml anymore except for Text.xml, and only that because you can't add things like Mór or Nezhêlîba in sql.) |
|
|
|
|
|
#45 |
|
King
Join Date: Mar 2011
Location: Orange County, California, U.S.A.
Posts: 626
|
I'd appreciate it if you could. SQL syntax is a bit strange.
__________________
-n. City States Leaders Randomize City Names Smaller Landmarks for R.E.D. Modpack Swiss Guard Gray/Sharkmouth Gunship Misc. Units
|
|
|
|
|
|
#46 | |
|
King
Join Date: Mar 2011
Location: Orange County, California, U.S.A.
Posts: 626
|
Quote:
I've managed to figure out enough SQL to be medium-dangerous, but I can't seem to replicate your results with improvements. The tables are all being updated properly. My workers can build the thing just fine, it's just that it's invisible. I tried converting a couple of Civ4 buildings, but I can't even get any of the vanilla CiV ones to work (and I've tried several). If you get a chance, can you post an example, or if it's easier, critique what I've got below: Spoiler:
Thanks!
__________________
-n. City States Leaders Randomize City Names Smaller Landmarks for R.E.D. Modpack Swiss Guard Gray/Sharkmouth Gunship Misc. Units
|
|
|
|
|
|
|
#47 |
|
Deity
Join Date: Jun 2008
Posts: 2,067
|
Sorry Nutty, got busy with other things and forgot. I'll post some example SQL this weekend
I hate to state the obvious, but if the tables contain the data that your SQL is supposed to add, then your SQL must be working. Something else is wrong. Perhaps what you are putting in the tables. I'm not spotting it now but I'll look again over the weekend. As I said in one of the dozen posts above, I've been checking "Reload Landmarks" in the mod properties since I've been doing this. Since I haven't gone back and tried unchecking it again, I have no idea whether this might matter. My only comments on your SQL are stylistic (for now). As I said above, if the changes you want are acurately relfected in the DB tables, then it must be working. 1) You don't need to quote tables and columns that are already defined. I.e., no quotes needed in the "INSERT" line. For that matter, you should not use double quotes at all in SQLite. 2) You can add many rows after an INSERT statement as explained here. You'll see that a lot in my example SQL, with whole tables (>100 rows) added by a single INSERT. It cuts the lines in half and makes it more readable. 3) I see 0 in at least one place that should be NULL (PrereqTech). This might work but it is not what you see in the core tables so you should avoid it. (On the other hand, true and false are entered as 1 and 0 which you have done correctly.) |
|
|
|
|
|
#48 | |
|
King
Join Date: Mar 2011
Location: Orange County, California, U.S.A.
Posts: 626
|
No worries!
Quote:
Spoiler:
Of course it matters. Duh! I was having CTDs with it on (turns out CiV didn't like the model), so I turned it off while troubleshooting, and never turned it back on. Thanks for the SQL style tips. Based on my playing around with this, I uploaded a tiny mod, Smaller Landmarks, that shrinks down resources, features, and improvements to better mesh with R.E.D. unit scaling. Unfortunately, it really looks like SQL alone doesn't cut it for units.
__________________
-n. City States Leaders Randomize City Names Smaller Landmarks for R.E.D. Modpack Swiss Guard Gray/Sharkmouth Gunship Misc. Units
|
|
|
|
|
|
|
#49 |
|
Deity
Join Date: Jun 2008
Posts: 2,067
|
Glad to see its working for someone else. Too bad units seem to work differently.
Per your request, I've posted some example SQL in my tutorial here (not really related to the present thread). |
|
|
|
|
|
#50 |
|
Chieftain
Join Date: Jan 2009
Posts: 32
|
Tried this last weekend, had no luck (Build resulted in a empty tile, but tool tip was there).
BUT with "Reload Landmarks" on, I've been able to replicate your results Cool Find! now to see if I can import a civ4 improvement... |
|
|
|
|
|
#51 |
|
Emperor
Join Date: Sep 2010
Location: New York
Posts: 1,795
|
I believe Reload Landmarks is known to cause crashes. Ask Spatz about it.
__________________
Mod Creator Check out Civ IV Diplomacy Features in Civ V! Check out my youtube channel here. |
|
|
|
|
|
#52 |
|
Deity
Join Date: Jun 2008
Posts: 2,067
|
I remember him saying something like that too. It would be nice if he elaborated here.
However, it does seem like we've figured out its function. I can't go back to not adding improvements now. @Nutty, Just out of curiosity, did you have the "Reload Unit System" checked when you failed to add unit art? Last edited by Pazyryk; Jan 29, 2012 at 09:57 PM. |
|
|
|
|
|
#53 |
|
Prince
Join Date: Sep 2010
Posts: 579
|
A quick google search gave this post by Thal about CTD and activating the reload landmark system, i really hope that firaxis patched it:
http://forums.civfanatics.com/showthread.php?t=431714 and some more stuff here: http://forums.2kgames.com/showthread...s-with-uploads |
|
|
|
|
|
#54 |
|
Tangaroa
![]() |
I used to check 'Reload Landmark System' when making the wonders, but since I stopped I've had nowhere near the number of crashes I used to
__________________
"I saw our people spreading throughout the land and across the oceans, expanding our kingdom, discovering new people and great riches in faraway lands" - More Civilizations. Most Recent: Tibet "We built wonderous monuments honouring the gods, which reached up to touch the very fabric of the heavens." - More Wonders. Most Recent: Todai-ji |
|
|
|
|
|
#55 |
|
King
Join Date: Mar 2008
Location: France
Posts: 804
|
'Reload Landmark System' is known to cause random crashes when a unit is moving.
I had the same problem as Pouakai : from the day I checked it my mod would crash randomly, it has stopped since I have unchecked Reload Landmark System. This function may have some utility perhaps included for a later use, but as with a lot of things in Civ 5 modding it seems to be bugged or unusable.
__________________
My Mods : Hulfgar's Industrial Warfare Gods and Kings Edition Postmodern Expansion for Gods and Kings |
|
|
|
|
|
#56 |
|
Deity
Join Date: Jun 2008
Posts: 2,067
|
Well, it may be fixed. Or not. The patch notes don't always help in these cases. What I can say is that I haven't seen any crashes like that lately. However, I've been doing a lot of Lua coding/debugging so I rarely get past turn 10.
|
|
|
|
|
|
#57 | |
|
King
Join Date: Mar 2011
Location: Orange County, California, U.S.A.
Posts: 626
|
Quote:
EDIT: And with the crazy idea that the unit system really was totally opposite the landmark system, I just tried, and it doesn't work with it unchecked, either.
__________________
-n. City States Leaders Randomize City Names Smaller Landmarks for R.E.D. Modpack Swiss Guard Gray/Sharkmouth Gunship Misc. Units
Last edited by Nutty; Jan 30, 2012 at 04:21 PM. |
|
|
|
|
|
|
#58 | |
|
Deity
Join Date: Aug 2002
Location: San Diego, California
Posts: 5,233
|
Quote:
You are probably getting the unfinished wonder graphic because you are using the original fxsxml which calls for both gr2s and is handled by the wonder generator. So if you create a new fxsxml using only the inished wonder gr2 you'll get the finished wonder. Not to distract you but (I can't confirm where) I heard that the code to make cottages grow from Civ4 is still in the civ5 code. So its possible to bring those growing tiles back. So you could possible switch the tradepost graphics with cities graphics and have it grow (until someone imports the civ4 graphics). On another note you can add TIs but does this mean you can add new wonder graphics too? do they look to be handled the same? Finally, your opening posts makes it sound like you found a bug in the database handling. Is that the case?
__________________
My Leaderhead Gallery! |
|
|
|
|
|
|
#59 |
|
Brooklyn Bum
Join Date: Oct 2010
Location: NYC
Posts: 1,876
|
I can confirm the growth function on improvements still works. I have created forts that grow into citadels after X number of turns
|
|
|
|
|
|
#60 |
|
Deity
Join Date: Aug 2002
Location: San Diego, California
Posts: 5,233
|
do you have that in a mod somewhere?
__________________
My Leaderhead Gallery! |
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|