Jump to content
×
×
  • Create New...
  • 0

[Help]Belt Sistem


AlCapone

Question

24 answers to this question

Recommended Posts

  • 0

 

 

edit value0 item_proto client/server

But what I put in value0? 

Thanks for your help

 

7

 

You have a compiler itemproto 40k? I have when descompile but when I change 1200 whit 7 then dont compile mi the new itemproto.

Link to comment
Share on other sites

  • 0
  • Premium

edit;

In belt_inventory_helper.h find

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)

and edit the function like this:

	static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
	{	
		return true;
	}

I think this will solve your problem.

Edited by Cataclismo
  • Love 1
Link to comment
Share on other sites

  • 0

Soo I put this but now dont compile me the game.

		return availableRuleByGrade;
	}

	static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
	{   
    	return true;
	}
	{
		// ±âȹ ¶Ç ¹Ù²ñ.. ¾Æ³ö...
Link to comment
Share on other sites

  • 0
  • Premium

You did it wrong. Replace whole function with mine.

Replace

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	//const TGradeUnit beltGrade = GetBeltGradeByRefineLevel(beltLevel);		
	const TGradeUnit* ruleTable = GetAvailableRuleTableByGrade();

	return ruleTable[cell] <= beltGrade;
}

with

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	return true;
}
  • Love 1
Link to comment
Share on other sites

  • 0

 

You did it wrong. Replace whole function with mine.

Replace

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	//const TGradeUnit beltGrade = GetBeltGradeByRefineLevel(beltLevel);		
	const TGradeUnit* ruleTable = GetAvailableRuleTableByGrade();

	return ruleTable[cell] <= beltGrade;
}

with

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	return true;
}

Ok now it works but how i block the spaces he cant use I make a picture too see.

5b7d8f80a8616fb30ae363949bc75aa1.png

Link to comment
Share on other sites

  • 0
  • Premium

 

 

You did it wrong. Replace whole function with mine.

Replace

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	//const TGradeUnit beltGrade = GetBeltGradeByRefineLevel(beltLevel);		
	const TGradeUnit* ruleTable = GetAvailableRuleTableByGrade();

	return ruleTable[cell] <= beltGrade;
}

with

static bool IsAvailableCell(WORD cell, int beltGrade /*int beltLevel*/)
{
	return true;
}

Ok now it works but how i block the spaces he cant use I make a picture too see.

5b7d8f80a8616fb30ae363949bc75aa1.png

 

 

My function allow the belts to be moved anywhere. The player can put any belt anywhere and at any level. There's no limit. You wanted to make with limits? Explain exactly what you want.

  • Love 1
Link to comment
Share on other sites

  • 0
  • Premium

There are suposed to be spaced blocked I am saying about this

d2a7decf476c8dd9fe2d2482ec5c6ec0.png

The item 18009 is suposed to allow only 6 but you can use the bloched too.

 

That does my function. Allows any belt to be moved anywhere because I though that this is what you want. Revert to the original code if you want them blocked.

  • Love 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.