Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 19:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[WIP] Get SRO Source Code - by re-writing it

Discussion on [WIP] Get SRO Source Code - by re-writing it within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old 08/13/2021, 14:48   #301
 
elite*gold: 0
Join Date: Mar 2010
Posts: 568
Received Thanks: 228
Quote:
Originally Posted by WolfgangNeverDie View Post
Can u teach me how to update this text from other GUI?
I want to make GUI for rank ingame. If it needs to create each variable per text then to too many variables...

For example my GUI like this:
Code:
for (int i = 0; i < 20; i++)
	{
		RECT r_slot = {18,55 + (23*i),47,24};
	    rank_slot = (CIFStatic *) CGWnd::CreateInstance(this,GFX_RUNTIME_CLASS(CIFStatic),r_slot,21+i,1);
		rank_slot->SetText(L"-");
	}
I don't know how to update this text
Quote:
Originally Posted by WolfgangNeverDie View Post
I think you don't want to make 100++ "m_mybutton" like that to create a GUI's Rank!
If your GUI's Rank has 20 rows and 6 columns. You must create 120 button. Omg @@!
Hello,

Code:
for (int i = 0; i < 20; i++)
	{
		RECT r_slot = {18,55 + (23*i),47,24};
	    rank_slot = (CIFStatic *) CGWnd::CreateInstance(this,GFX_RUNTIME_CLASS(CIFStatic),r_slot,21+i,1);
		rank_slot->SetText(L"-");
	}
you forget thing.

change from rank_slot = (CIFStatic *) to rank_sloti = (CIFStatic *)

and

rank_slot->SetText(L"-"); to rank_sloti->SetText(L"-");


good luck
Laag#82 is offline  
Old 08/13/2021, 15:13   #302
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Quote:
Originally Posted by khaleed2010 View Post
Hello,

Code:
for (int i = 0; i < 20; i++)
	{
		RECT r_slot = {18,55 + (23*i),47,24};
	    rank_slot = (CIFStatic *) CGWnd::CreateInstance(this,GFX_RUNTIME_CLASS(CIFStatic),r_slot,21+i,1);
		rank_slot->SetText(L"-");
	}
you forget thing.

change from rank_slot = (CIFStatic *) to rank_sloti = (CIFStatic *)

and

rank_slot->SetText(L"-"); to rank_sloti->SetText(L"-");


good luck
Wait Can you explain one
CIFStatic can't addion a string/int "i". I don't understand how to increase this rank_slot1 rank_slot2 ...
sry for my unknowledge
WolfgangNeverDie is offline  
Old 08/13/2021, 15:16   #303

 
SubZero**'s Avatar
 
elite*gold: 270
Join Date: Apr 2017
Posts: 1,024
Received Thanks: 511
Quote:
Originally Posted by WolfgangNeverDie View Post
I think you don't want to make 100++ "m_mybutton" like that to create a GUI's Rank!
If your GUI's Rank has 20 rows and 6 columns. You must create 120 button. Omg @@!
why ill create 120 buttons anyway?!
For rank gui you can use the created GUI As variable on ur next gui as a new type
SubZero** is offline  
Old 08/13/2021, 15:23   #304
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Quote:
Originally Posted by SubZero** View Post
why ill create 120 buttons anyway?!
For rank gui you can use the created GUI As variable on ur next gui as a new type
Do you use "Getflorian0Runtime" to draw GUI in DLL without "text resinfo"?
WolfgangNeverDie is offline  
Old 08/13/2021, 19:31   #305

 
SubZero**'s Avatar
 
elite*gold: 270
Join Date: Apr 2017
Posts: 1,024
Received Thanks: 511
Quote:
Originally Posted by WolfgangNeverDie View Post
Do you use "Getflorian0Runtime" to draw GUI in DLL without "text resinfo"?
even before Florian do an example for it
Also he helped me to know how to config it like txts
SubZero** is offline  
Old 08/13/2021, 22:12   #306
 
elite*gold: 0
Join Date: Aug 2019
Posts: 55
Received Thanks: 10
Quote:
Originally Posted by WolfgangNeverDie View Post
@

Can't use this method to show/hidden "IFFlorian0Runtime" GUI. Client always crashed

Code:
g_pCGInterface->m_IRM.GetResObj(1340, 1)->ShowGWnd(false);
Quote:
Originally Posted by WolfgangNeverDie View Post
Code:
CIFflorian0Runtime *CGInterface::Getflorian0Runtime() {
    return m_IRM.GetResObj<CIFflorian0Runtime>(GDR_FLORIAN0_RT_WINDOW, 1);
}
Code:
Don't work
g_pCGInterface->Getflorian0Runtime()->ShowGWnd(true);
Quote:
Originally Posted by WolfgangNeverDie View Post
Yes. im pretty sure. It's correct one. This is default "IFFlorian0Runtime" GUI's ID
what are you trying to do?
if you using this
Code:
CIFflorian0Runtime *CGInterface::Getflorian0Runtime() {
    return m_IRM.GetResObj<CIFflorian0Runtime>(GDR_FLORIAN0_RT_WINDOW, 1);
}
then add Getflorian0Runtime(); to AfterCreate
if you are using the CreateInstance
Code:
    RECT r = {0, 0, 400, 200};
    CGWnd::CreateInstance(this,
                          GFX_RUNTIME_CLASS(CIFflorian0Runtime),
                          r,
                          GDR_FLORIAN0_RT_WINDOW,
                          1);
make it like this
Code:
    RECT r = {0, 0, 400, 200};
    CIFflorian0Runtime* m_test = CGWnd::CreateInstance(this,
                          GFX_RUNTIME_CLASS(CIFflorian0Runtime),
                          r,
                          GDR_FLORIAN0_RT_WINDOW,
                          1);
just add CIFflorian0Runtime* m_test =
then call the ShowGWnd func to be like that m_test->ShowGWnd(true);3
omar125 is offline  
Old 08/14/2021, 01:03   #307
 
elite*gold: 0
Join Date: Aug 2021
Posts: 71
Received Thanks: 24
Looks great
-[Anxi]- is offline  
Old 08/14/2021, 02:27   #308
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Quote:
just add CIFflorian0Runtime* m_test =
then call the ShowGWnd func to be like that m_test->ShowGWnd(true);3
i already do it. but now I get another problem. Look at my preview post #
WolfgangNeverDie is offline  
Old 08/25/2021, 16:55   #309
 
elite*gold: 0
Join Date: Aug 2009
Posts: 152
Received Thanks: 11
I have a problem that after setting the client path and running VS in debug, I got this message *Please Execute the "Silkroad.exe."*
I think the DLL isn't injected to the client.
tarek1500 is offline  
Old 09/15/2021, 13:26   #310
 
[GM] Purple's Avatar
 
elite*gold: 313
Join Date: Sep 2021
Posts: 68
Received Thanks: 101
Florian you are legendary
[GM] Purple is offline  
Old 10/13/2021, 02:44   #311
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
I can't use SetGWndSize

PHP Code:
g_pCGInterface->m_IRM.GetResObj(13381)->SetGWndSize(230,599); 
Fixed. Using SetGWnd from IFGwnd
WolfgangNeverDie is offline  
Old 10/13/2021, 04:01   #312
 
bimbum*'s Avatar
 
elite*gold: 47
Join Date: Oct 2017
Posts: 574
Received Thanks: 968
Quote:
Originally Posted by WolfgangNeverDie View Post
I can't use SetGWndSize

PHP Code:
g_pCGInterface->m_IRM.GetResObj(13381)->SetGWndSize(230,599); 
do a check to see if the window != null and visible
bimbum* is offline  
Old 01/05/2022, 21:44   #313
 
painmaker_'s Avatar
 
elite*gold: 0
Join Date: Dec 2021
Posts: 85
Received Thanks: 74
AWESOME LIBRARY!
painmaker_ is offline  
Old 07/09/2022, 21:07   #314
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Help me! How to change text Align (Left Right Center)
My GUI create in dll. No text
Quote:
rank_slot->SetText(L"123456789");
WolfgangNeverDie is offline  
Old 07/13/2022, 18:01   #315
 
painmaker_'s Avatar
 
elite*gold: 0
Join Date: Dec 2021
Posts: 85
Received Thanks: 74
Quote:
Originally Posted by WolfgangNeverDie View Post
Help me! How to change text Align (Left Right Center)
My GUI create in dll. No text
for center text
rank_slot->TB_Func_5(1);
rank_slot->TB_Func_6(1);
painmaker_ is offline  
Thanks
1 User
Reply

Tags
ussless


Similar Threads Similar Threads
[Source] Fix the old exp bar - by writing code!
05/17/2020 - SRO PServer Guides & Releases - 18 Replies
Hello beloved, dead community, its time for another release. Its more of a proof of concept and I hope it might inspire people to continue working on it. You don't need the source to accomplish cool things. Just write your own source. http://i.epvpimg.com/d7hJbab.png Ye, its super ugly looking. I choose to be a coder, not a designer. I'd be happy, if someone supplies me a proper version of the 2dt and ddj files so I can update this embarrassing screenshot. Anyway. It allows you to...
[Release/WIP]EP6 Source code
04/15/2018 - Shaiya PServer Guides & Releases - 33 Replies
Hi guys, First of all, I want to say that this release is not recommended for public servers yet. Shortly ago I changed my server to ep6 using shen1l's pet.dll, the server crashed every day, after checking the dump files I discovered that the problem was in pet.dll, but without the source code it would be harder to find the cause of the problem. So I decided to start a project and release the source code for everyone, so that everyone can solve their problems more easily, and also so that...
[C++ Source] My Free Farm Bot [WIP]
06/28/2011 - Browsergames - 0 Replies
I decided to release this on here as i have no more use for it and no intention to continue the project. I am releasing 2 projects: One basic library for mff called libmff(although it is not really a library) there is an example on how to use it in the package. And a helper with a fancy gui. Note that there is almost no error checking on the helper and that it crashes if you for example forget to select a product. You need libcurl and boost for both and GWEN(the gui toolkit by garry) for...



All times are GMT +1. The time now is 19:01.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.