HELP ME WITH MY MOD

KarrarGame

Chieftain
Joined
Aug 31, 2019
Messages
16
Hello all
So I started modding literally couple of days ago, and I wanted to create a new civilization using a template.. but that didn't work, and then I literally took another mod and copied everything with a slight few changes but that didn't work either. of course I changed the mod id..

since I didn't get CIV 6 from steam...I have no access for modbuddy, but I saw couple a forms that talked about the possibility of creating a mod from notepad, so that's what I did with notepad++ .. My mod shows in the mods menu..but my civilization doesn't show in the civilization selection. so I will attach the mod here, thought you guys can help me out.. all the work I did using 2 programs: Notepad++ and Photoshop.

My game: Civilization VI Rise and Fall

note: keep in mind that this is a very basic thing so I am really new to the modding..
 

Attachments

  • IRAQ CIVILIZATION.rar
    IRAQ CIVILIZATION.rar
    1.7 MB · Views: 127
  • Capture1.PNG
    Capture1.PNG
    88.8 KB · Views: 151
I assume you're running on Mac and got the game from the Mac App store rather than Steam.

I don't know where you got this as an action-type:
Code:
    <UpdateCorebase id="Config">
      <File>Core/Iraq_Config.sql</File>
    </UpdateCorebase>
I've never seen that option as a valid action-type before in ModBuddy. It may be a valid option-type for Firaxis to use, but in any case you want an action-type of UpdateDatabase instead of the one you are using.

You aren't seeing your mod's civilization showing in the start menu because you are running RaF and your Configuration File contains nothing to tell the game the civ will be a valid player for RaF:
Code:
INSERT INTO Players	
		(CivilizationType,						Portrait,								PortraitBackground,							LeaderType,						LeaderName,									LeaderIcon,								LeaderAbilityName,								LeaderAbilityDescription,									LeaderAbilityIcon,						CivilizationName,							CivilizationIcon,						CivilizationAbilityName,						CivilizationAbilityDescription,								CivilizationAbilityIcon)
VALUES	('CIVILIZATION_KFD_IRAQ',			'LEADER_SADDAM_NEUTRAL.dds',		'LEADER_JOHN_CURTIN_BACKGROUND',		'LEADER_KFD_SADDAM',		'LOC_LEADER_KFD_SADDAM_NAME',		'ICON_LEADER_KFD_SADDAM',		'LOC_TRAIT_LEADER_KFD_SADDAM_VISION_NAME',	'LOC_TRAIT_LEADER_KFD_SADDAM_VISION_DESCRIPTION',		'ICON_LEADER_KFD_SADDAM',		'LOC_CIVILIZATION_KFD_IRAQ_NAME',		'ICON_CIVILIZATION_KFD_IRAQ',		'LOC_TRAIT_CIVILIZATION_KFD_DAR_AL_SALAM_NAME',		'LOC_TRAIT_CIVILIZATION_KFD_DAR_AL_SALAM_DESCRIPTION',				'ICON_CIVILIZATION_KFD_IRAQ');

INSERT INTO PlayerItems	
		(CivilizationType,					LeaderType,					Type,							Icon,								Name,									  	Description,									SortIndex)
VALUES	('CIVILIZATION_KFD_IRAQ',		'LEADER_KFD_SADDAM',	'BUILDING_KFD_DAR_AL_SALAM',				'ICON_BUILDING_KFD_DAR_AL_SALAM',		'LOC_BUILDING_KFD_DAR_AL_SALAM_NAME',			'LOC_BUILDING_KFD_DAR_AL_SALAM_DESCRIPTION',			30);
You need to add a row to each of these tables for the Expansion_1 players "domain". You should be able to find examples of how to do this with some fairly quick browsing here on the forum.
 
I assume you're running on Mac and got the game from the Mac App store rather than Steam.

I don't know where you got this as an action-type:
Code:
    <UpdateCorebase id="Config">
      <File>Core/Iraq_Config.sql</File>
    </UpdateCorebase>
I've never seen that option as a valid action-type before in ModBuddy. It may be a valid option-type for Firaxis to use, but in any case you want an action-type of UpdateDatabase instead of the one you are using.

You aren't seeing your mod's civilization showing in the start menu because you are running RaF and your Configuration File contains nothing to tell the game the civ will be a valid player for RaF:
Code:
INSERT INTO Players   
        (CivilizationType,                        Portrait,                                PortraitBackground,                            LeaderType,                        LeaderName,                                    LeaderIcon,                                LeaderAbilityName,                                LeaderAbilityDescription,                                    LeaderAbilityIcon,                        CivilizationName,                            CivilizationIcon,                        CivilizationAbilityName,                        CivilizationAbilityDescription,                                CivilizationAbilityIcon)
VALUES    ('CIVILIZATION_KFD_IRAQ',            'LEADER_SADDAM_NEUTRAL.dds',        'LEADER_JOHN_CURTIN_BACKGROUND',        'LEADER_KFD_SADDAM',        'LOC_LEADER_KFD_SADDAM_NAME',        'ICON_LEADER_KFD_SADDAM',        'LOC_TRAIT_LEADER_KFD_SADDAM_VISION_NAME',    'LOC_TRAIT_LEADER_KFD_SADDAM_VISION_DESCRIPTION',        'ICON_LEADER_KFD_SADDAM',        'LOC_CIVILIZATION_KFD_IRAQ_NAME',        'ICON_CIVILIZATION_KFD_IRAQ',        'LOC_TRAIT_CIVILIZATION_KFD_DAR_AL_SALAM_NAME',        'LOC_TRAIT_CIVILIZATION_KFD_DAR_AL_SALAM_DESCRIPTION',                'ICON_CIVILIZATION_KFD_IRAQ');

INSERT INTO PlayerItems   
        (CivilizationType,                    LeaderType,                    Type,                            Icon,                                Name,                                          Description,                                    SortIndex)
VALUES    ('CIVILIZATION_KFD_IRAQ',        'LEADER_KFD_SADDAM',    'BUILDING_KFD_DAR_AL_SALAM',                'ICON_BUILDING_KFD_DAR_AL_SALAM',        'LOC_BUILDING_KFD_DAR_AL_SALAM_NAME',            'LOC_BUILDING_KFD_DAR_AL_SALAM_DESCRIPTION',            30);
You need to add a row to each of these tables for the Expansion_1 players "domain". You should be able to find examples of how to do this with some fairly quick browsing here on the forum.




I actually used another Civilization mod as a reference, i made a previous one from a template by some youtuber named Kenni, but for some reason it didnt work, so i devided to look for another mod as a reference, and as i told you i am new to this modding thing, so half of the time i dont know what im doing...but i will look at your suggestion and i will inform you what happenes next..

Thank you for the reply
 
I assume you're running on Mac and got the game from the Mac App store rather than Steam.

I don't know where you got this as an action-type:
Code:
    <UpdateCorebase id="Config">
      <File>Core/Iraq_Config.sql</File>
    </UpdateCorebase>
I've never seen that option as a valid action-type before in ModBuddy. It may be a valid option-type for Firaxis to use, but in any case you want an action-type of UpdateDatabase instead of the one you are using.

You aren't seeing your mod's civilization showing in the start menu because you are running RaF and your Configuration File contains nothing to tell the game the civ will be a valid player for RaF:
Code:
INSERT INTO Players  
        (CivilizationType,                        Portrait,                                PortraitBackground,                            LeaderType,                        LeaderName,                                    LeaderIcon,                                LeaderAbilityName,                                LeaderAbilityDescription,                                    LeaderAbilityIcon,                        CivilizationName,                            CivilizationIcon,                        CivilizationAbilityName,                        CivilizationAbilityDescription,                                CivilizationAbilityIcon)
VALUES    ('CIVILIZATION_KFD_IRAQ',            'LEADER_SADDAM_NEUTRAL.dds',        'LEADER_JOHN_CURTIN_BACKGROUND',        'LEADER_KFD_SADDAM',        'LOC_LEADER_KFD_SADDAM_NAME',        'ICON_LEADER_KFD_SADDAM',        'LOC_TRAIT_LEADER_KFD_SADDAM_VISION_NAME',    'LOC_TRAIT_LEADER_KFD_SADDAM_VISION_DESCRIPTION',        'ICON_LEADER_KFD_SADDAM',        'LOC_CIVILIZATION_KFD_IRAQ_NAME',        'ICON_CIVILIZATION_KFD_IRAQ',        'LOC_TRAIT_CIVILIZATION_KFD_DAR_AL_SALAM_NAME',        'LOC_TRAIT_CIVILIZATION_KFD_DAR_AL_SALAM_DESCRIPTION',                'ICON_CIVILIZATION_KFD_IRAQ');

INSERT INTO PlayerItems  
        (CivilizationType,                    LeaderType,                    Type,                            Icon,                                Name,                                          Description,                                    SortIndex)
VALUES    ('CIVILIZATION_KFD_IRAQ',        'LEADER_KFD_SADDAM',    'BUILDING_KFD_DAR_AL_SALAM',                'ICON_BUILDING_KFD_DAR_AL_SALAM',        'LOC_BUILDING_KFD_DAR_AL_SALAM_NAME',            'LOC_BUILDING_KFD_DAR_AL_SALAM_DESCRIPTION',            30);
You need to add a row to each of these tables for the Expansion_1 players "domain". You should be able to find examples of how to do this with some fairly quick browsing here on the forum.


so i did three things.
1) i added the domain based on another mod i found which said Domain="StandardPlayers" so it didnt work
2) i did the same as step 1 but instead of "standardplayers".. i wrote ''Expansion_1 players'' same as what you suggested (i thought maybe i was dumb and i was supposed to do that) but it didnt work
3) i removed the first issue you told me which is this one below, and i did step 1 with it, and it didnt work
<UpdateCorebase id="Config">
<File>Core/Iraq_Config.sql</File>
</UpdateCorebase>


any other suggestions??
 
so i saw this attached down in the config file at the bottom,and since it was a downloaded template of a youtuber teaching how to add a new civ, I though it might be a key to solving this domain thing, but i failed to understand it
 

Attachments

  • Update3.PNG
    Update3.PNG
    8.5 KB · Views: 112
"Expansion_1 players" is not code. It is discussion text of what you need to look for in the threads on the forum. I don't currently have civ6 loaded on my computer since I am in the midst of moving over to a new computer. There should be threads in the Help forum for Civ6 where you posted this thread asking about how to make a modded civ work for RaF. I think what you need to do is state "Players:Expansion1_Players" but I cannot remember for 100% sure. But you need to do some browsing on this forum and double-check for the exact proper code needed.
 
UPDATE: I FOUND A FIX, BUT..

i went on the fourms and i found someone with the same problem as me, we had the same template, but she fixed it with the domain thing and i did not.. so my guess the problem is in the files ".modinfo" and ".def" since i got them from another source, these two files were not given in the template of josu "template creator".. so i guess the problem is there, but i dont know where exactly..
 
"Expansion_1 players" is not code. It is discussion text of what you need to look for in the threads on the forum. I don't currently have civ6 loaded on my computer since I am in the midst of moving over to a new computer. There should be threads in the Help forum for Civ6 where you posted this thread asking about how to make a modded civ work for RaF. I think what you need to do is state "Players:Expansion1_Players" but I cannot remember for 100% sure. But you need to do some browsing on this forum and double-check for the exact proper code needed.


yeah i searched..it is the correct code, but it is still cannot be shown
 
this is the file after i updated the code, still no fix
 

Attachments

  • update before last.PNG
    update before last.PNG
    29.1 KB · Views: 151
  1. Table MapSupportedValues will accomplish nothing to solve your issue. You need the correct designations for "Domain" to add to tables Players and PlayerItems
    Spoiler correct code needed :
    Code:
    INSERT INTO Players	
    		(CivilizationType,						Portrait,								PortraitBackground,							LeaderType,						LeaderName,									LeaderIcon,								LeaderAbilityName,								LeaderAbilityDescription,									LeaderAbilityIcon,						CivilizationName,							CivilizationIcon,						CivilizationAbilityName,						CivilizationAbilityDescription,								CivilizationAbilityIcon)
    VALUES	('CIVILIZATION_KFD_IRAQ',			'LEADER_SADDAM_NEUTRAL.dds',		'LEADER_JOHN_CURTIN_BACKGROUND',		'LEADER_KFD_SADDAM',		'LOC_LEADER_KFD_SADDAM_NAME',		'ICON_LEADER_KFD_SADDAM',		'LOC_TRAIT_LEADER_KFD_SADDAM_VISION_NAME',	'LOC_TRAIT_LEADER_KFD_SADDAM_VISION_DESCRIPTION',		'ICON_LEADER_KFD_SADDAM',		'LOC_CIVILIZATION_KFD_IRAQ_NAME',		'ICON_CIVILIZATION_KFD_IRAQ',		'LOC_TRAIT_CIVILIZATION_KFD_DAR_AL_SALAM_NAME',		'LOC_TRAIT_CIVILIZATION_KFD_DAR_AL_SALAM_DESCRIPTION',				'ICON_CIVILIZATION_KFD_IRAQ');
    
    INSERT INTO PlayerItems	
    		(CivilizationType,					LeaderType,					Type,							Icon,								Name,									  	Description,									SortIndex)
    VALUES	('CIVILIZATION_KFD_IRAQ',		'LEADER_KFD_SADDAM',	'BUILDING_KFD_DAR_AL_SALAM',				'ICON_BUILDING_KFD_DAR_AL_SALAM',		'LOC_BUILDING_KFD_DAR_AL_SALAM_NAME',			'LOC_BUILDING_KFD_DAR_AL_SALAM_DESCRIPTION',			30);
    
    INSERT INTO Players	
    		(Domain, CivilizationType,						Portrait,								PortraitBackground,							LeaderType,						LeaderName,									LeaderIcon,								LeaderAbilityName,								LeaderAbilityDescription,									LeaderAbilityIcon,						CivilizationName,							CivilizationIcon,						CivilizationAbilityName,						CivilizationAbilityDescription,								CivilizationAbilityIcon)
    VALUES	('Players:Expansion1_Players', 'CIVILIZATION_KFD_IRAQ',			'LEADER_SADDAM_NEUTRAL.dds',		'LEADER_JOHN_CURTIN_BACKGROUND',		'LEADER_KFD_SADDAM',		'LOC_LEADER_KFD_SADDAM_NAME',		'ICON_LEADER_KFD_SADDAM',		'LOC_TRAIT_LEADER_KFD_SADDAM_VISION_NAME',	'LOC_TRAIT_LEADER_KFD_SADDAM_VISION_DESCRIPTION',		'ICON_LEADER_KFD_SADDAM',		'LOC_CIVILIZATION_KFD_IRAQ_NAME',		'ICON_CIVILIZATION_KFD_IRAQ',		'LOC_TRAIT_CIVILIZATION_KFD_DAR_AL_SALAM_NAME',		'LOC_TRAIT_CIVILIZATION_KFD_DAR_AL_SALAM_DESCRIPTION',				'ICON_CIVILIZATION_KFD_IRAQ');
    
    INSERT INTO PlayerItems	
    		(Domain, CivilizationType,					LeaderType,					Type,							Icon,								Name,									  	Description,									SortIndex)
    VALUES	('Players:Expansion1_Players', 'CIVILIZATION_KFD_IRAQ',		'LEADER_KFD_SADDAM',	'BUILDING_KFD_DAR_AL_SALAM',				'ICON_BUILDING_KFD_DAR_AL_SALAM',		'LOC_BUILDING_KFD_DAR_AL_SALAM_NAME',			'LOC_BUILDING_KFD_DAR_AL_SALAM_DESCRIPTION',			30);
    It took me all of five minutes to download a working Civ6 mod from the website's Download system and verify the correct code needed.
  2. This is incorrect within the modinfo file
    Code:
    <UpdateCorebase id="Config">
    <File>Core/Iraq_Config.sql</File>
    </UpdateCorebase>
    The correct method is
    Code:
    <UpdateDatabase id="Config">
    <File>Core/Iraq_Config.sql</File>
    </UpdateDatabase>
    I've never seen UpdateCorebase used anywhere before to add new stuff or alter existing contents of the game's SQL database from a mod. If you found that on the internet somewhere I'd have to assign that to someone who knows very little about how the game works posting "tutorials" to the internet when they have no earthly idea of what it is they are doing.
  3. You will also need to correct this
    Code:
        <UpdateCorebase id="Gameplay">
          <Criteria>IraqCriteria</Criteria>
          <File>Core/StartPos.sql</File>
          <File>Core/Iraq_Buildings.xml</File>
    	  <File>Core/Iraq_GameDefines.sql
        </UpdateCorebase>
  4. If "UpdateCorebase" even works, I would assume it is meant only for Firaxis to use to enter code into the game's hidden "core" database to which modders have no access and to which our code from within our mods is never sent.
  5. And you don't actually need any of this in your "Iraq.modinfo" file:
    Code:
      <ActionCriteria>
        <Criteria id="IraqCriteria" />
      </ActionCriteria>
    Nor any of these
    Code:
    <Criteria>IraqCriteria</Criteria>
    Just delete all the "Criteria" stuff entirely.
    • You defined a criteria name but never defined the actual requirements that must be met for the criteria to be satisfied, so your code would never actually load because the criteria you have set is never met.
    • You don't need the Criteria anyway. Mods work fine without it.
 
i did all of that...doesnt seem to work

i guess i need to start the .modinfo from the beginning or something..it has to be a very stupid and a slight error for it to not work, maybe something like a missed comma or something like that
 
UPDATE:
so i find the problem, and as i suspected, a comma was misplaced, but now i have two extra problem.. i attached a picture to show the problem..

and when i wanted to start a game, it just takes me to the loading screen for some seconds and then it returns me to the Game menu..

even though i placed all the pictures in texture file, is the problem because i dont have a .BLP file that stores all the pictures in one place? if so how do i make a .BLP file?
 

Attachments

  • Problem 1.PNG
    Problem 1.PNG
    541.5 KB · Views: 247
upload_2019-9-1_11-57-24.png

the problem is in these lines, when i removed them, the civilization appeared in the game in a weird way and i already posted the picture minutes ago

but when i wrote them back, the civilization didnt appear... so my guess i have to defines these but in another way, not writing them made my civilization appear in the character selection but without text and pictures..
 
Back
Top Bottom