Jump to content
V3ct0r

The source code is available!

Recommended Posts

On 5/13/2019 at 10:21 PM, FapFap said:

You won't be able to complie client with the missing files since they MISSING - "Deleted" - "Not Shared"...

I did with what's posted in here, what's missing is some knowledge on your side.

 

14 hours ago, V3ct0r said:

Source codes were posted "as is", as they were received from the seller. I personally successfully compiled them some years ago. Both client and server. All that you are missing is basic knowledge of C/C++ and Visual Studio.

I confirm.

  • Like 1

Share this post


Link to post
Share on other sites

i wanna give my opinion on recent posts here about the source code, i don't think you need a full guide but some basic facts would be fine, like when you downloaded the files for the SRC you  get all this folders with names  and more files inside, i think it would help if you know what folder is used for, for example where is the source code, where are the scripts for items npc,, im working with  a friend that is really good on c++ and i still don't know how to  tell him where is the src in the dowloaded files cuase i have never seen this files before. my point is we don't need a guide but just a more easy way to understand wich files do what.

Share this post


Link to post
Share on other sites
1 hour ago, willewallo said:

i wanna give my opinion on recent posts here about the source code, i don't think you need a full guide but some basic facts would be fine, like when you downloaded the files for the SRC you  get all this folders with names  and more files inside, i think it would help if you know what folder is used for, for example where is the source code, where are the scripts for items npc,, im working with  a friend that is really good on c++ and i still don't know how to  tell him where is the src in the dowloaded files cuase i have never seen this files before. my point is we don't need a guide but just a more easy way to understand wich files do what.

0e8zgIv.png

 

Ih0O5rR.png

 

  • Thanks 2

Discord:Wolfen#1498

https://www.patreon.com/ReTop

Share this post


Link to post
Share on other sites
On 6/9/2016 at 1:08 AM, V3ct0r said:

The source code is available!

 

6c88aba69e87.png

Dear PkoDev.Net community members,
Today we are releasing TOP/PKO source codes and it means that they will be available to everyone. I'd really want to thank our friendly and cohesive community for helping us in the fundraising event. Thank you for your help! I wish you best of luck in the studying process and I hope they will help us to make the game better! Congratulations! :smile:

 

Special thanks to:

RU: ZEST Online Team (@e1mer), World of Chaos Team (@NMS3RR), Mordo Online Team, @Chad, @insider, @V1tor, @Chudik, @BotPRO, @BETEP/macs509, @lyon, @Am*n9ma (Pastuh).

EN: @KONG@Wrexor@Yudha@Jones@Andy@Foxseiz@Andrew@Lucky@Sea King@DevMorgan@LazyKid@Sultan@TheLegend@Onioni@7n6@GustavoHMA@Xeon, @Ishcurry.

 

Soon you'll see different kind of tutorials regarding work with the source code (code modifications, explanation).

 

You can get link to download the source code from attachment (Source Code.txt)

Guys can someone post an upgraded version of the source code, possible 2013+? (Preferably 2019). I've been trying for 4 hours to upgrade the project files but VS2019 is giving my over 20k errors.. yes errors not warnings. I know the code would run on VS2005 but its hard to get that and its simply outdated.. So those who already got the project running on a newer version of Visual Studio please share.. Thanks

 

Edit: I downloaded VS2005 and tried building the project.. im getting the same exact errors.. Its telling me there are mistakes in .h files that are located inside the visual studio folder, and when i try to make changes and save, it gives access denied, both in vs2005 and vs2019.... so .......??? wht to doooo

Edited by saa0d

Share this post


Link to post
Share on other sites
On 5/18/2019 at 12:01 AM, wolfenx said:

0e8zgIv.png

 

Ih0O5rR.png

 

Also, in addition to my previous post. I have missing folders like MINDPOWER3D .. I simply don't have it.. where are you people getting your source codes from...

Share this post


Link to post
Share on other sites
11 hours ago, wolfenx said:

In the mega folder is everything or in the main thread of the source code, and if you don't know how to compile it is another thing but that I can not help you

The last time I used visual basic was in 2012. But I know that there is a main solution file that links all other required files to build the project. So I believe it is kop.sln but correct me if I'm wrong. When I open kop.sln it loads mindpower3d.sln too so that seems right at least.. but when I try to simply build the project I get tons of errors. I migrated all sln files to 2019 and no luck. Also, I looked inside every folder, I don't have a folder called MINDPOWER3D like u have. I downloaded the files several times and I can't find it.

Not just I don't have it, but I have folders in different directories than the one you put in pictures 

I also did try to fix it. I realized that codes were missing g dx8.1 sdk so I put it I  Include folder. Then it kept telling me that there are many identifiers that are undefined but I can't simply go and define them, and these identifiers r on header files in my windows 10 sdk folder not my source code folder so I don't think I should play with that....

Edited by saa0d

Share this post


Link to post
Share on other sites

ok for me. the error is the d3d8.h library

since d3d8 are old libraries that is why they give you many errors after compiling in vs2010+ those libraries are common for vs2003 2005 or 2008

just choose to use vs2003 and order the project

starting with mindpowe3d since it is the one in charge of rendering the models etc.

game.exe depends on that library to compile

when compiling game.exe in vs 2010+ it will give you errors because d3d8 is obsolete and you should migrate to d3d9 d3d10 or d3d11

and the identifiers are common errors since every time the visual studio is updated, those identifiers are modified, updated or simply become obsolete.

 


Discord:Wolfen#1498

https://www.patreon.com/ReTop

Share this post


Link to post
Share on other sites
1 hour ago, wolfenx said:

ok for me. the error is the d3d8.h library

since d3d8 are old libraries that is why they give you many errors after compiling in vs2010+ those libraries are common for vs2003 2005 or 2008

just choose to use vs2003 and order the project

starting with mindpowe3d since it is the one in charge of rendering the models etc.

game.exe depends on that library to compile

when compiling game.exe in vs 2010+ it will give you errors because d3d8 is obsolete and you should migrate to d3d9 d3d10 or d3d11

and the identifiers are common errors since every time the visual studio is updated, those identifiers are modified, updated or simply become obsolete.

 

Bro I did downloaad the d3d8.h library and put it in includes folder. That stopped its error but the errors that came after it are lots. But i also instlled VS2005 coz Wrexor told me it'll work with that, but i get same exact errors

 

Edit: I forgot to mention that the errors am getting are actually from the mindpower3d proejct sln

Edited by saa0d

Share this post


Link to post
Share on other sites

I have some problems with 2.x source. Game.exe does not run. Do not know how to trace the problem here. Can you help me?

 

PC -> Control Panel\Clock and Region -> Change system locale > Select Chinisese (Simplified, China) - So there won't be no problems with UI in chinese letters (it wont run otherwise)

image.png.9a9e9c6025df71cf9f068a1bbe03f280.png

 

LightEngine compiles fine from folder Client\Engine\sdk

1>Embedding manifest...
1>Build log was saved at "file://c:\PKO 2.4\Client\Engine\sdk\temp\release\BuildLog.htm"
1>LightEngine - 0 error(s), 45 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Game does not compile from folder client\client

Renamed all MP to LE (unidentified identifiers)

(No more errors of unidentified identifiers in Game Output log at this point)

 

So what left is now:

Error	6	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	Scene.obj
Error	7	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	ChaScript.obj
Error	8	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	UIScript.obj
Error	9	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	GameAppFrameMove.obj
Error	10	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	GameAppInit.obj
Error	11	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	GameAppInterface.obj
Error	12	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	UIRender.obj
Error	13	error LNK2001: unresolved external symbol "protected: static class CEff_ParamSet * CEff_ParamSet::_Instance" (?_Instance@CEff_ParamSet@@1PAV1@A)	GameAppMsg.obj
Error	14	error LNK2001: unresolved external symbol "protected: static class CGroup_ParamSet * CGroup_ParamSet::_Instance" (?_Instance@CGroup_ParamSet@@1PAV1@A)	GameAppMsg.obj
Error	15	error LNK2001: unresolved external symbol "protected: static class CGroup_ParamSet * CGroup_ParamSet::_Instance" (?_Instance@CGroup_ParamSet@@1PAV1@A)	EffectObj.obj
Error	16	error LNK2001: unresolved external symbol "private: static class ui::UIClip * ui::UIClip::m_pClip" (?m_pClip@UIClip@ui@@0PAV12@A)	UINumAnswer.obj
Error	17	error LNK2001: unresolved external symbol "private: static class ui::UIClip * ui::UIClip::m_pClip" (?m_pClip@UIClip@ui@@0PAV12@A)	UIRender.obj
Error	18	error LNK2001: unresolved external symbol "protected: static class LETerrainSet * LETerrainSet::_Instance" (?_Instance@LETerrainSet@@1PAV1@A)	Scene.obj
Error	19	error LNK2001: unresolved external symbol "protected: static class LETerrainSet * LETerrainSet::_Instance" (?_Instance@LETerrainSet@@1PAV1@A)	UIScript.obj
Error	20	fatal error LNK1120: 5 unresolved externals	C:\TOP Project\Client\Client\bin\system\Game.exe

 

So I added these lines of code to because of errors above

Scene.cpp - added this after headers

LETexSet*	LETexSet::_Instance			= NULL	;
LETerrainSet*	LETerrainSet::_Instance	= NULL	;

EffectObj.cpp - after headers

CEff_ParamSet* CEff_ParamSet::_Instance = NULL;

 

GameAppMsg.cpp - after headers

ui::UIClip* ui::UIClip::m_pClip = NULL;
CGroup_ParamSet* CGroup_ParamSet::_Instance = NULL;

 

Now everything compiles with no errors.

1>------ Build started: Project: kop, Configuration: Release Win32 ------
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
1>cl : Command line warning D9025 : overriding '/GR-' with '/GR'
1>cl : Command line warning D9025 : overriding '/EHs' with '/EHa'
1>Scene.cpp
1>EffectObj.cpp
1>GameAppMsg.cpp
1>FlashPlayer.cpp
1>Linking...
1>LINK : warning LNK4199: /DELAYLOAD:d3d8.dll ignored; no imports found from d3d8.dll
1>LINK : warning LNK4199: /DELAYLOAD:dinput8.dll ignored; no imports found from dinput8.dll
1>Embedding manifest...
1>Build log was saved at "file://c:\PKO 2.4\Client\client\client\temp\Release\BuildLog.htm"
1>kop - 0 error(s), 5 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

 

Game.exe:

 

Running table_bin

image.png.a84b02abbb59eb4fd0a72fbf28077f23.png

 

Running start_game

image.png.de17380c31682096c68150e7e34aa008.png

你好:
    我发现了一个Bug,哈哈,你们赶快解决哈,Bug信息如下:
Access Violation
Call Stack:
0040c272 at 0040b8d0 WinMain
Access Violation
   EIP=0x101d309a  EBP=0x0019f740  ESP=0x0019f738  EFL=0x00210202
   EAX=0x08cf9c80  EBX=0xddcbe0e1  ECX=0x0000001e  EDX=0x00000000
   ESI=0x08cf9c08  EDI=0xfa2c0580  CTF=0x0001007f

Dump:ESP(0019f738)
80 05 2C FA 30 9A 9A 02 08 9C CF 08 82 5B 0B 10 ..,.0........[..
80 05 2C FA 08 9C CF 08 78 00 00 00 BA 8D 46 11 ..,.....x.....F.
8C 37 66 00 30 9A 9A 02 D8 F9 19 00 01 00 00 00 .7f.0...........
D0 49 27 10 00 00 00 00 54 00 00 00 08 9C 9A 02 .I'.....T.......
78 00 00 00 08 9C CF 08 D8 F9 19 00 1C 6A 0B 10 x............j..
C4 F8 19 00 FF 00 00 00 FF FF FF FF D8 B8 21 10 ..............!.
8C 37 66 00 CC F9 19 00 88 BF 20 10 FF FF FF FF .7f....... .....
31 6A 0B 10 78 00 00 00 3A 83 46 11 48 95 9A 02 1j..x...:.F.H...

2023-03-08 09.30.48.965
Unknown Windwos VerUnknown Windows NT

DirectX Ver:90000

DeviceType 1

AdapterOrdinal 0

Caps 20000

Caps2 200A0000

Caps3 A0

PresentationIntervals 8000000F

CursorCaps 1

DevCaps 1BBEF0

PrimitiveMiscCaps 3F8CF2

RasterCaps C736193

ZCmpCaps FF

SrcBlendCaps 1FFF

DestBlendCaps 1FFF

AlphaCmpCaps FF

ShadeCaps 84208

TextureCaps 1EC45

TextureFilterCaps 703073F

CubeTextureFilterCaps 3030300

VolumeTextureFilterCaps 7030700

TextureAddressCaps 3F

VolumeTextureAddressCaps 3F

LineCaps 1F

MaxTextureWidth 4000

MaxTextureHeight 4000

MaxVolumeExtent 2000

MaxTextureRepeat 2000

MaxTextureAspectRatio 2000

MaxAnisotropy 10

MaxVertexW 10000000000.000000

GuardBandLeft -32768.000000

GuardBandTop -32768.000000

GuardBandRight 32768.000000

GuardBandBottom 32768.000000

ExtentsAdjust 0.000000

StencilCaps FF

FVFCaps 100008

TextureOpCaps 3FFFFFF

MaxTextureBlendStages 8

MaxSimultaneousTextures 8

VertexProcessingCaps 7B

MaxActiveLights A

MaxUserClipPlanes 6

MaxVertexBlendMatrices 4

MaxVertexBlendMatrixIndex 8

MaxPointSize 256.000000

MaxPrimitiveCount 555555

MaxVertexIndex FFFFFF

MaxStreams 10

MaxStreamStride 1FC

VS:FFFE0101 PS:FFFF0104

MaxVertexShaderConst 60

MaxPixelShaderValue 340282346638528860000000000000000000000.000000


	您的联系方式:

 

 

Share this post


Link to post
Share on other sites
13 hours ago, Unknown said:

I have some problems with 2.x source. Game.exe does not run. Do not know how to trace the problem here. Can you help me?

 

PC -> Control Panel\Clock and Region -> Change system locale > Select Chinisese (Simplified, China) - So there won't be no problems with UI in chinese letters (it wont run otherwise)

image.png.9a9e9c6025df71cf9f068a1bbe03f280.png

 

LightEngine compiles fine from folder Client\Engine\sdk


1>Embedding manifest...
1>Build log was saved at "file://c:\PKO 2.4\Client\Engine\sdk\temp\release\BuildLog.htm"
1>LightEngine - 0 error(s), 45 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Game does not compile from folder client\client

Renamed all MP to LE (unidentified identifiers)

(No more errors of unidentified identifiers in Game Output log at this point)

 

So what left is now:


Error	6	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	Scene.obj
Error	7	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	ChaScript.obj
Error	8	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	UIScript.obj
Error	9	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	GameAppFrameMove.obj
Error	10	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	GameAppInit.obj
Error	11	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	GameAppInterface.obj
Error	12	error LNK2001: unresolved external symbol "protected: static class LETexSet * LETexSet::_Instance" (?_Instance@LETexSet@@1PAV1@A)	UIRender.obj
Error	13	error LNK2001: unresolved external symbol "protected: static class CEff_ParamSet * CEff_ParamSet::_Instance" (?_Instance@CEff_ParamSet@@1PAV1@A)	GameAppMsg.obj
Error	14	error LNK2001: unresolved external symbol "protected: static class CGroup_ParamSet * CGroup_ParamSet::_Instance" (?_Instance@CGroup_ParamSet@@1PAV1@A)	GameAppMsg.obj
Error	15	error LNK2001: unresolved external symbol "protected: static class CGroup_ParamSet * CGroup_ParamSet::_Instance" (?_Instance@CGroup_ParamSet@@1PAV1@A)	EffectObj.obj
Error	16	error LNK2001: unresolved external symbol "private: static class ui::UIClip * ui::UIClip::m_pClip" (?m_pClip@UIClip@ui@@0PAV12@A)	UINumAnswer.obj
Error	17	error LNK2001: unresolved external symbol "private: static class ui::UIClip * ui::UIClip::m_pClip" (?m_pClip@UIClip@ui@@0PAV12@A)	UIRender.obj
Error	18	error LNK2001: unresolved external symbol "protected: static class LETerrainSet * LETerrainSet::_Instance" (?_Instance@LETerrainSet@@1PAV1@A)	Scene.obj
Error	19	error LNK2001: unresolved external symbol "protected: static class LETerrainSet * LETerrainSet::_Instance" (?_Instance@LETerrainSet@@1PAV1@A)	UIScript.obj
Error	20	fatal error LNK1120: 5 unresolved externals	C:\TOP Project\Client\Client\bin\system\Game.exe

 

So I added these lines of code to because of errors above

Scene.cpp - added this after headers


LETexSet*	LETexSet::_Instance			= NULL	;
LETerrainSet*	LETerrainSet::_Instance	= NULL	;

EffectObj.cpp - after headers


CEff_ParamSet* CEff_ParamSet::_Instance = NULL;

 

GameAppMsg.cpp - after headers


ui::UIClip* ui::UIClip::m_pClip = NULL;
CGroup_ParamSet* CGroup_ParamSet::_Instance = NULL;

 

Now everything compiles with no errors.


1>------ Build started: Project: kop, Configuration: Release Win32 ------
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
1>cl : Command line warning D9025 : overriding '/GR-' with '/GR'
1>cl : Command line warning D9025 : overriding '/EHs' with '/EHa'
1>Scene.cpp
1>EffectObj.cpp
1>GameAppMsg.cpp
1>FlashPlayer.cpp
1>Linking...
1>LINK : warning LNK4199: /DELAYLOAD:d3d8.dll ignored; no imports found from d3d8.dll
1>LINK : warning LNK4199: /DELAYLOAD:dinput8.dll ignored; no imports found from dinput8.dll
1>Embedding manifest...
1>Build log was saved at "file://c:\PKO 2.4\Client\client\client\temp\Release\BuildLog.htm"
1>kop - 0 error(s), 5 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

 

Game.exe:

 

Running table_bin

image.png.a84b02abbb59eb4fd0a72fbf28077f23.png

 

Running start_game

image.png.de17380c31682096c68150e7e34aa008.png


你好:
    我发现了一个Bug,哈哈,你们赶快解决哈,Bug信息如下:
Access Violation
Call Stack:
0040c272 at 0040b8d0 WinMain
Access Violation
   EIP=0x101d309a  EBP=0x0019f740  ESP=0x0019f738  EFL=0x00210202
   EAX=0x08cf9c80  EBX=0xddcbe0e1  ECX=0x0000001e  EDX=0x00000000
   ESI=0x08cf9c08  EDI=0xfa2c0580  CTF=0x0001007f

Dump:ESP(0019f738)
80 05 2C FA 30 9A 9A 02 08 9C CF 08 82 5B 0B 10 ..,.0........[..
80 05 2C FA 08 9C CF 08 78 00 00 00 BA 8D 46 11 ..,.....x.....F.
8C 37 66 00 30 9A 9A 02 D8 F9 19 00 01 00 00 00 .7f.0...........
D0 49 27 10 00 00 00 00 54 00 00 00 08 9C 9A 02 .I'.....T.......
78 00 00 00 08 9C CF 08 D8 F9 19 00 1C 6A 0B 10 x............j..
C4 F8 19 00 FF 00 00 00 FF FF FF FF D8 B8 21 10 ..............!.
8C 37 66 00 CC F9 19 00 88 BF 20 10 FF FF FF FF .7f....... .....
31 6A 0B 10 78 00 00 00 3A 83 46 11 48 95 9A 02 1j..x...:.F.H...

2023-03-08 09.30.48.965
Unknown Windwos VerUnknown Windows NT

DirectX Ver:90000

DeviceType 1

AdapterOrdinal 0

Caps 20000

Caps2 200A0000

Caps3 A0

PresentationIntervals 8000000F

CursorCaps 1

DevCaps 1BBEF0

PrimitiveMiscCaps 3F8CF2

RasterCaps C736193

ZCmpCaps FF

SrcBlendCaps 1FFF

DestBlendCaps 1FFF

AlphaCmpCaps FF

ShadeCaps 84208

TextureCaps 1EC45

TextureFilterCaps 703073F

CubeTextureFilterCaps 3030300

VolumeTextureFilterCaps 7030700

TextureAddressCaps 3F

VolumeTextureAddressCaps 3F

LineCaps 1F

MaxTextureWidth 4000

MaxTextureHeight 4000

MaxVolumeExtent 2000

MaxTextureRepeat 2000

MaxTextureAspectRatio 2000

MaxAnisotropy 10

MaxVertexW 10000000000.000000

GuardBandLeft -32768.000000

GuardBandTop -32768.000000

GuardBandRight 32768.000000

GuardBandBottom 32768.000000

ExtentsAdjust 0.000000

StencilCaps FF

FVFCaps 100008

TextureOpCaps 3FFFFFF

MaxTextureBlendStages 8

MaxSimultaneousTextures 8

VertexProcessingCaps 7B

MaxActiveLights A

MaxUserClipPlanes 6

MaxVertexBlendMatrices 4

MaxVertexBlendMatrixIndex 8

MaxPointSize 256.000000

MaxPrimitiveCount 555555

MaxVertexIndex FFFFFF

MaxStreams 10

MaxStreamStride 1FC

VS:FFFE0101 PS:FFFF0104

MaxVertexShaderConst 60

MaxPixelShaderValue 340282346638528860000000000000000000000.000000


	您的联系方式:

 

 

Attach a debugger and see where the exception occurs. FYI, though, I don't remember having to set up System Language as Chinese. Just change the .res file to en_US.


"Beware of bugs in the above code; I have only proved it correct, not tried it."

- Donald E. Knuth

Share this post


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

Attach a debugger and see where the exception occurs. FYI, though, I don't remember having to set up System Language as Chinese. Just change the .res file to en_US.

I've just set it to Chinese in order to see comments properly without changing encoding of files for translating. (Also no need to do anything with .res or ui)

 

Well, since starting game.exe without parameter "startgame" returns 0 so debug auto stops, i commented that return 0

    if(strParam.find("startgame")==-1) 
	{
		LG("Error", RES_STRING(CL_LANGUAGE_MATCH_190));
		//return 0;
	}

 

After that it takes me to

LEResManger

	const char* shader_file[] = 
	{
		"eff1.vso",
		"eff2.vso",
		"eff3.vso",
		"eff4.vso",
		"font.vso",
		"shadeeff.vso",
		"minimap.vso",
	};
	for( int i = 0; i < 7; i++ )
	{
		_snprintf_s(path,DR_MAX_PATH, _TRUNCATE, "%s%s", path_info->GetPath( PATH_TYPE_SHADER ), shader_file[i] );

		if( DR_FAILED( shader_mgr->RegisterVertexShader( shader_type[i], path, 0, decl_tab[i], decl_size[i],1 )))
		{
			MessageBox(NULL,shader_file[i],"ERROR",0);
			return false;
		}
		if(i< 4)
		{
			_iVShaderNum++;
			_vecVShader.resize(_iVShaderNum);
			_vecVShader[_iVShaderNum - 1] = 0;
			shader_mgr->QueryVertexShader(&_vecVShader[_iVShaderNum - 1],shader_type[i]);
		}else
		{
			if(i==4)
				shader_mgr->QueryVertexShader(&_dwFontVS,shader_type[i]);
			if(i==5)
				shader_mgr->QueryVertexShader(&_dwShadeMapVS,shader_type[i]);
			if(i==6)
				shader_mgr->QueryVertexShader(&_dwMinimapVS,shader_type[i]);
		}

	} 

MessageBox(NULL,shader_file,"ERROR",0);

 

So i got message box popped up says:

Error

eff1.vso

 

I have no idea why this would happen, shader folder is there with all these files. Also tried getting similar/different shaders from other installer/patch. Same thing happens

 

Do you have any idea why this would happen? lol

Edited by Unknown

Share this post


Link to post
Share on other sites

@Unknown

You can set up parameters in the debugger, so no need to comment stuff out. Regardless, I think you should start by analyzing "path" variable to see if it contains the proper file location. If it does, then you will have to figure out why RegisterVertexShader is returning an error. Again, this will be much easier with breakpoints.

  • Thanks 1

"Beware of bugs in the above code; I have only proved it correct, not tried it."

- Donald E. Knuth

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...