King Of Hell

[SOLVED] level system [SOLVED]

12 posts in this topic

Posted (edited)

as far as i can see you can set item levels to 1 2 3 and 9000. is there way to add more levels and/or change colors of items? if there is where can i do that? thanks for help

can i change it in ExileClient_gui_inventory_updateItemColors.sqf ? how should i do it like a "new mod" instead of changing exile data?

solved by 

Taylor Swift

big thanks.

There's 10001 examples of how to do this on the forums: But here...

Take the file names of the functions you want to overwrite (DO NOT EDIT THEM IN THE @EXILE client folder) copy the function to you mission file.

in config.cpp (mission folder) search for "CfgExileCustomCode"


class CfgExileCustomCode
{
	MYORIGINALFUNCTIONNAME = "PATH TO MY CUSTOM FILE\FUNCTION.SQF";
	MYORIGINALFUNCTIONNAME2 = "PATH TO MY CUSTOM FILE\FUNCTIONTWO.SQF";
};

Congrats, you just overwrote Exile's client code ;)

Edited by King Of Hell

Share this post


Link to post
Share on other sites

There's no need for a "new mod" in anything you do in Exile. Everything is editable.

switch (_quality) do
{
	case QUALITY_LEVEL_2: 		{ _color = COLOR_QUALITY_LEVEL_2; };
	case QUALITY_LEVEL_3:		{ _color = COLOR_QUALITY_LEVEL_3; };
	case QUALITY_LEVEL_9000: 	{ _color = COLOR_QUALITY_LEVEL_9000; };
	case (44): {_color = 'SOME COLOUR HERE'};
	default 					{ _color = COLOR_QUALITY_LEVEL_1; };									
}

add as many as you like... I guess.. :D

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Posted (edited)

19 minutes ago, Taylor Swift said:

There's no need for a "new mod" in anything you do in Exile. Everything is editable.


switch (_quality) do
{
	case QUALITY_LEVEL_2: 		{ _color = COLOR_QUALITY_LEVEL_2; };
	case QUALITY_LEVEL_3:		{ _color = COLOR_QUALITY_LEVEL_3; };
	case QUALITY_LEVEL_9000: 	{ _color = COLOR_QUALITY_LEVEL_9000; };
	case (44): {_color = 'SOME COLOUR HERE'};
	default 					{ _color = COLOR_QUALITY_LEVEL_1; };									
}

add as many as you like... I guess.. :D

whats that file? if thats client file then i cant edit it, otherwise everyone will have to download MY version of exile, as far as i understand. or its different with scripts? 

Edited by King Of Hell

Share this post


Link to post
Share on other sites

Posted (edited)

are you saying that if i go to Serverlocation\@Exile\addons\exile_client\exile_client\code\ and open ExileClient_gui_itemDetails_show.sqf and  ExileClient_gui_inventory_updateItemColors.sqf  and edit them and compile back to pbo, other people will see the change and they will not have to download anything new?

Edited by King Of Hell

Share this post


Link to post
Share on other sites

ok i tried that and it didnt work as expected. i need to make like a new mod and use modified script but i'm not sure how exactly will all that work, can anyone help? what will happen if i have 2 scripts(codes) which do almost exactly same thing? i'm guessing 1 will work after another, but which 1 will work after which 1. thats the question, plus its not very efficient to have 2 codes which do the same thing, but i cant remove the vanilla code. maybe make a new code which would only work AFTER vanilla and add new levels in that code while keeping the old levels in old code? that seems like best way, but i'm still not sure which 1 will work first and which second. also if i add code to my new mod will it just work or i need to configure it somehow?

Share this post


Link to post
Share on other sites

No, you don't. xD

CfgCustomCode < -- Look into it ;) 

Share this post


Link to post
Share on other sites

Posted (edited)

12 minutes ago, Taylor Swift said:

No, you don't. xD

CfgCustomCode < -- Look into it ;) 

oh right, nice, thanks. btw its cfgexilecustomcode :D

EDIT: well you can change server code there, not client code. item quality is client-sided code.

changing the server-side code isnt a problem either way, i can change the file itself and save and it will work, but client-sided files need to be uploaded for the users, so if i change my server's client files everyone on the server have to change those too. which means instead of official exile they'll need to download modified exile, which isnt good idea :D

Edited by King Of Hell

Share this post


Link to post
Share on other sites
12 minutes ago, King Of Hell said:

oh right, nice, thanks. btw its cfgexilecustomcode :D

EDIT: well you can change server code there, not client code. item quality is client-sided code.

changing the server-side code isnt a problem either way, i can change the file itself and save and it will work, but client-sided files need to be uploaded for the users, so if i change my server's client files everyone on the server have to change those too. which means instead of official exile they'll need to download modified exile, which isnt good idea :D

In the mission running on my test server, I overwrite 38 client side functions. Trust me, you can overwrite client code ;)

Share this post


Link to post
Share on other sites
10 minutes ago, Taylor Swift said:

In the mission running on my test server, I overwrite 38 client side functions. Trust me, you can overwrite client code ;)

ok so in ExileClient_gui_inventory_updateItemColors

i want to change 

switch (_quality) do
						{
							case 2: 		{ _color = [0, 0.78, 0.93, 1]; };
							case 3:		{ _color = [0.7, 0.93, 0, 1]; };
							case 9000: 	{ _color = [0.93, 0, 0.48, 1]; };
							default 					{ _color = [1, 1, 1, 1]; };									
						};

with

switch (_quality) do
						{
							case 2: 		{ _color = [0, 0.78, 0.93, 1]; };
							case 3:		{ _color = [0.7, 0.93, 0, 1]; };
							case 4:		{ _color = [0.93, 0, 0.48, 1]; };
							case 5:		{ _color = [1, 0.90, 0, 1]; };
							case 9000: 	{ _color = [0.93, 0, 0.48, 1]; };
							default 					{ _color = [1, 1, 1, 1]; };									
						};

and in ExileClient_gui_itemDetails_show

i want to change 

switch (_quality) do
{
	case 2: 		
	{ 
		_qualityColor = "#00c8ec";
		_qualityName = "Item Level 2";
	};
	case 3:		
	{ 
		_qualityColor = "#b2ec00";
		_qualityName = "Item Level 3";
	};
	case 9000: 	
	{ 
		_qualityColor = "#ec007a";
		_qualityName = "Item Level over 9000";
	};							
};

with

switch (_quality) do
{
	case 2: 		
	{ 
		_qualityColor = "#00c8ec";
		_qualityName = "Item Level 2";
	};
	case 3:		
	{ 
		_qualityColor = "#b2ec00";
		_qualityName = "Item Level 3";
	};
	case 4:		
	{ 
		_qualityColor = "#ec007a";
		_qualityName = "Item Level 4";
	};
	case 5:		
	{ 
		_qualityColor = "#ffd700";
		_qualityName = "Item Level 5";
	};
	case 9000: 	
	{ 
		_qualityColor = "#ec007a";
		_qualityName = "Item Level over 9000";
	};							
};

can you please tell me how exactly i need to do it? i'm very new to whole modding, i started doing it yesterday.

Share this post


Link to post
Share on other sites

There's 10001 examples of how to do this on the forums: But here...

Take the file names of the functions you want to overwrite (DO NOT EDIT THEM IN THE @EXILE client folder) copy the function to you mission file.

in config.cpp (mission folder) search for "CfgExileCustomCode"

class CfgExileCustomCode
{
	MYORIGINALFUNCTIONNAME = "PATH TO MY CUSTOM FILE\FUNCTION.SQF";
	MYORIGINALFUNCTIONNAME2 = "PATH TO MY CUSTOM FILE\FUNCTIONTWO.SQF";
};

Congrats, you just overwrote Exile's client code ;)

Share this post


Link to post
Share on other sites
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.