Guest deleted2868792 Posted March 11, 2018 Share Posted March 11, 2018 I would like to create a mod that add the new cards from TWCG to the witcher 3....I know how to edit the cards already in the game (stats/pics), but how can I add totally new ones? There was a mod that did this (witcher TWCG Extra cards), but is no longer on the nexus...does anyone still have it? Link to comment Share on other sites More sharing options...
Focusnoot Posted March 12, 2018 Share Posted March 12, 2018 So if I understand correctly you want to make new cards that are obtainable ingame? I think I know how to do that, but I haven't tried it myself so it may not work. First you need to add entries for your cards in the \gameplay\items\def_gwint_card_items.xml. I guess this is the part you did already.Then you have to make entries for those cards in \gameplay\items\def_item_gwint.xml. I have only fiddled around with values here, never added something. But from what I understand here you specify the item icon and name (that you see in the shop and when you get the card as a reward), how many of the card you can obtain and some other stuff.I think the last step would be to add it to an ingame shop, which can you do in \gameplay\items\def_loot_shops.xml You should probably also create a new case for the name to int functions in \game\gui\menus\gwintManager.ws (they are at the end of the file). Then you can get the card through the console commands by name as well. Not sure if it is also used for other things. Link to comment Share on other sites More sharing options...
Guest deleted2868792 Posted March 13, 2018 Share Posted March 13, 2018 (edited) So if I understand correctly you want to make new cards that are obtainable ingame? I think I know how to do that, but I haven't tried it myself so it may not work. First you need to add entries for your cards in the \gameplay\items\def_gwint_card_items.xml. I guess this is the part you did already.Then you have to make entries for those cards in \gameplay\items\def_item_gwint.xml. I have only fiddled around with values here, never added something. But from what I understand here you specify the item icon and name (that you see in the shop and when you get the card as a reward), how many of the card you can obtain and some other stuff.I think the last step would be to add it to an ingame shop, which can you do in \gameplay\items\def_loot_shops.xml You should probably also create a new case for the name to int functions in \game\gui\menus\gwintManager.ws (they are at the end of the file). Then you can get the card through the console commands by name as well. Not sure if it is also used for other things. thank you very much for your reply and help...just another questions, what file should I edit to change/add the name/description of a card? for example: if I want to rename king foltest cards, so one becames Henselt, One Demavend, etc.... Sorry if i'm not clear enough, I'm not a native english speaker Edited March 13, 2018 by FireFoxEnergy Link to comment Share on other sites More sharing options...
Focusnoot Posted March 13, 2018 Share Posted March 13, 2018 Np, and your English is fine thank you very much for your reply and help...just another questions, what file should I edit to change/add the name/description of a card?for example: if I want to rename king foltest cards, so one becames Henselt, One Demavend, etc.... You need w3strings encoder for that: https://www.nexusmods.com/witcher3/mods/1055It comes with an example/readme to create a string file with new strings that you can give a key(str). That key you can use in for example the def_gwint_cards_final.xml as the name of a card. To edit an existing name, you need to decode the .w3strings file containing that name with the w3strings encoder. Usually it is in the .w3strings file in <your W3 directory>\content\content0. In that file you can search the name/description you want to overwrite and add a new entry with the hex of that name/description in your own string file. Then your new string file is done and you can encode it with the w3strings encoder and put it in your mod. Link to comment Share on other sites More sharing options...
Guest deleted2868792 Posted March 13, 2018 Share Posted March 13, 2018 Np, and your English is fine thank you very much for your reply and help...just another questions, what file should I edit to change/add the name/description of a card?for example: if I want to rename king foltest cards, so one becames Henselt, One Demavend, etc.... You need w3strings encoder for that: https://www.nexusmods.com/witcher3/mods/1055It comes with an example/readme to create a string file with new strings that you can give a key(str). That key you can use in for example the def_gwint_cards_final.xml as the name of a card. To edit an existing name, you need to decode the .w3strings file containing that name with the w3strings encoder. Usually it is in the .w3strings file in <your W3 directory>\content\content0. In that file you can search the name/description you want to overwrite and add a new entry with the hex of that name/description in your own string file. Then your new string file is done and you can encode it with the w3strings encoder and put it in your mod. Great, I will have a look at those files...thank you again, much appreciated! Link to comment Share on other sites More sharing options...
Guest deleted2868792 Posted March 13, 2018 Share Posted March 13, 2018 (edited) Np, and your English is fine thank you very much for your reply and help...just another questions, what file should I edit to change/add the name/description of a card?for example: if I want to rename king foltest cards, so one becames Henselt, One Demavend, etc.... You need w3strings encoder for that: https://www.nexusmods.com/witcher3/mods/1055It comes with an example/readme to create a string file with new strings that you can give a key(str). That key you can use in for example the def_gwint_cards_final.xml as the name of a card. To edit an existing name, you need to decode the .w3strings file containing that name with the w3strings encoder. Usually it is in the .w3strings file in <your W3 directory>\content\content0. In that file you can search the name/description you want to overwrite and add a new entry with the hex of that name/description in your own string file. Then your new string file is done and you can encode it with the w3strings encoder and put it in your mod. Ok, I have done some tests: I have been able to create a new card (without editing the string file at the moment)...so I can see it in the game, use it, but of course it doesn't have any name or "quote"/description. I had a look at the string files and I'm increadibly confused....i understood how to edit the name/text of a cards that already exists, but how can I assign a new id/hex???? to a totally new card? 1) 1234567789|afdf9588||Custom Card Name, how do I choose the numbers? 2) After i choose the id/hex and I type the text (for example the name of a new card: Spotter)...how can I tell the game that this line needs to be the name of the new card i created (Spotter)? Edited March 13, 2018 by FireFoxEnergy Link to comment Share on other sites More sharing options...
Focusnoot Posted March 14, 2018 Share Posted March 14, 2018 1) 1234567789|afdf9588||Custom Card Name, how do I choose the numbers? 2) After i choose the id/hex and I type the text (for example the name of a new card: Spotter)...how can I tell the game that this line needs to be the name of the new card i created (Spotter)? 1) I think the readme of the w3strings encoder tells you how to choose a valid id that doesn't conflict with other mods (the first number). For a new string you don't need the second number (the hex value) in my experience. You do need the third thing, but that is not a number but a string (the key(str) I was talking about in the previous post). So it looks like <valid id number>||gwint_card_string_identifier|Custom Card name. 2) You can now use the gwint_card_string_identifier that I used in 1) to use that string, so for example in def_gwint_cards_final.xml you can use it as the description there. I'm pretty sure that is how it is done, but I can't check it for you right now. So this info is just from the top of my head. Link to comment Share on other sites More sharing options...
Guest deleted2868792 Posted March 14, 2018 Share Posted March 14, 2018 1) 1234567789|afdf9588||Custom Card Name, how do I choose the numbers? 2) After i choose the id/hex and I type the text (for example the name of a new card: Spotter)...how can I tell the game that this line needs to be the name of the new card i created (Spotter)? 1) I think the readme of the w3strings encoder tells you how to choose a valid id that doesn't conflict with other mods (the first number). For a new string you don't need the second number (the hex value) in my experience. You do need the third thing, but that is not a number but a string (the key(str) I was talking about in the previous post). So it looks like <valid id number>||gwint_card_string_identifier|Custom Card name. 2) You can now use the gwint_card_string_identifier that I used in 1) to use that string, so for example in def_gwint_cards_final.xml you can use it as the description there. I'm pretty sure that is how it is done, but I can't check it for you right now. So this info is just from the top of my head. Ok, now it is clear...I think I will proceed adding all the new cards first and then adding name/description using the string file. Thank you very much for your help. Link to comment Share on other sites More sharing options...
Guest deleted2868792 Posted March 15, 2018 Share Posted March 15, 2018 ok, so i started compiling the csv file, is it correct?: ;meta[language=it] ; id |key(hex)|key(str)| text 2119123000||gwint_name_assassin|Assassino 2119123001||gwint_desc_assassin|Una delle professioni più popolari alla corte imperiale, solo dopo lo scriba e la cortigiana. 2119123002|4b3fb6ff||Cahir Mawr Dyffryn aep Ceallach 2119123003|4bc088ee||Letho di Guleta Link to comment Share on other sites More sharing options...
Focusnoot Posted March 16, 2018 Share Posted March 16, 2018 Assuming you put all these things on different lines, then yeah it looks good to me. But if you're asking here I guess it doesn't work? Only other reason I can think of now is maybe the special characters like ¹ and maybe à cause issues. Link to comment Share on other sites More sharing options...
Recommended Posts