[Release] World Conquer Source v2

04/02/2020 12:59 Gii0#226
What I did ---> [Only registered and activated users can see links. Click Here To Register...]

So what i did is I change the code from .Drop_ITEM to .DELETE
and it seems working find if I drop any item and relogin and check my inventory the item that i drop dont duplicate anymore. and I try to pickup the item and relogin and no item is duplicated it is now working find but the problem is it keeps on showing this error.

The Error ---> [Only registered and activated users can see links. Click Here To Register...]
04/02/2020 20:23 pintinho12#227
Then you need to get rid of the item object in the server, because the item still exists. It's throwing exceptions because it cannot save an record that no longer exists.
Good job tho
04/03/2020 18:50 sedian#228
Hi beginner here, i really wanted to make ps server v5517 but i dont know how to setup everything can someone help? What should i do? Do i need hamachi etc?
04/03/2020 20:33 pintinho12#229
Quote:
Originally Posted by Gii0 View Post
What I did ---> [Only registered and activated users can see links. Click Here To Register...]

So what i did is I change the code from .Drop_ITEM to .DELETE
and it seems working find if I drop any item and relogin and check my inventory the item that i drop dont duplicate anymore. and I try to pickup the item and relogin and no item is duplicated it is now working find but the problem is it keeps on showing this error.

The Error ---> [Only registered and activated users can see links. Click Here To Register...]
After reading this again I noticed that this is wrong. You can't delete the item on drop or you can't grab it again, unless you create a brand new item after getting it.
04/03/2020 20:53 Gii0#230
Quote:
Originally Posted by pintinho12 View Post
After reading this again I noticed that this is wrong. You can't delete the item on drop or you can't grab it again, unless you create a brand new item after getting it.
I already tested it. If I drop the item. The item is now deleted to the database but the item exist in the map. Now if i pickup that not existing item the error will show but the item will now exist in my inventory and in the database.

I tried it with other character. I drop Item from my first character then pick the item with my second character the error will show but the item exist in the database.


Also when i drop the item and leave it until it disppear the error will show again.
I dont have any problem this time so far regarding to that changes I made. But Im gonna make some more test.
I just want to know how to remove that error showing.
04/03/2020 23:27 pintinho12#231
Quote:
Originally Posted by Gii0 View Post
I already tested it. If I drop the item. The item is now deleted to the database but the item exist in the map. Now if i pickup that not existing item the error will show but the item will now exist in my inventory and in the database.

I tried it with other character. I drop Item from my first character then pick the item with my second character the error will show but the item exist in the database.


Also when i drop the item and leave it until it disppear the error will show again.
I dont have any problem this time so far regarding to that changes I made. But Im gonna make some more test.
I just want to know how to remove that error showing.
You have two solutions:
Quote:
You delete the item right when you drop it, but you save a snapshot (or struct with the item info) of it's latest state, and create a brand new item when AND IF someone grabs it.
Quote:
You don't delete the item, make sure PlayerIdentity is set to 0 together with position being set to 254, make a check when loading inventory to just don't load items with position 254 and make sure that the items thread is deleting it when it expires, then, if someone grabs the item, you just save the new player identity into the item and send it to the inventory.
Also, if you're not deleting the item make sure that there's absolutely nothing saving a new item in the process. AFAIK there's no way of duplicating an item unless the procedure is creating a new one instead of changing owners. As you noticed, FluentNHibernate won't let you duplicate.
04/04/2020 00:22 Spirited#232
Quote:
Originally Posted by sedian View Post
Hi beginner here, i really wanted to make ps server v5517 but i dont know how to setup everything can someone help? What should i do? Do i need hamachi etc?
Our community is mostly self-help, and the server scene is unfortunately very saturated with people making poor content. There are a few beginners making nice servers, but it's mostly bad... which doesn't help with the mentality here. If you still want to give it a try, do expect to learn or have learned programming already. It's a steep curve to climb initially. Feel free to create a new thread about problems you run into, but be prepared to be asked what your problem is, what you've done to try solving the problem, what you expect, what the actual behavior is, pictures, errors, etc. Good luck, and check out all the stickied threads we have.
04/04/2020 18:26 Gii0#233
Quote:
Originally Posted by pintinho12 View Post
You have two solutions:



Also, if you're not deleting the item make sure that there's absolutely nothing saving a new item in the process. AFAIK there's no way of duplicating an item unless the procedure is creating a new one instead of changing owners. As you noticed, FluentNHibernate won't let you duplicate.
Thanks! I will try that. One thing I found out that the phoenix skill dont levelup.
04/14/2020 12:34 MichaelNashat#234
thank you for this source.
i have this problem there is no error so what can i do to get in the game ?!
[Only registered and activated users can see links. Click Here To Register...]
04/14/2020 21:11 Spirited#235
Quote:
Originally Posted by MichaelNashat View Post
thank you for this source.
i have this problem there is no error so what can i do to get in the game ?!
[Only registered and activated users can see links. Click Here To Register...]
Can you please upload your picture to a trustworthy image hosting site such as [Only registered and activated users can see links. Click Here To Register...] or [Only registered and activated users can see links. Click Here To Register...]?
04/14/2020 23:37 MichaelNashat#236
sure, sorry about that.
[Only registered and activated users can see links. Click Here To Register...]
04/15/2020 02:01 Spirited#237
Quote:
Originally Posted by MichaelNashat View Post
sure, sorry about that.
[Only registered and activated users can see links. Click Here To Register...]
Your game server ip is probably not reachable. Either your configuration is wrong or the port isn't open through your firewall. If you're testing with your local Ip address, then it's probably the first.
04/15/2020 09:16 MichaelNashat#238
done, thanks for your help the problem that i used a wrong port for loader..
04/15/2020 22:40 brayan6921#239
buena
04/17/2020 08:02 emobaba31#240
Quote:
Originally Posted by pintinho12 View Post
Then you need to get rid of the item object in the server, because the item still exists. It's throwing exceptions because it cannot save an record that no longer exists.
Good job tho
EDİT: I WİLL FİXED. IM SETUP mysql-connector-net-6.6.6.msi PROBLEM FİXED.

[Only registered and activated users can see links. Click Here To Register...]
AppServ v 8.5.0

Apache 2.4.23
PHP 5.6.26
PHP 7.0.11
MySQL 5.7.15
phpMyAdmin 4.6.4


Error Log here
PHP Code:
2020-04-17 08:49:30 [ERROR] - Could not connect to mysql server.
2020-04-17 08:49:30 [EXCEPTION] - FluentNHibernate.Cfg.FluentConfigurationExceptionAn invalid or incomplete configuration was used while creating a SessionFactoryCheck PotentialReasons collection, and InnerException for more detail.

 ---> 
NHibernate.HibernateExceptionCould not create the driver from NHibernate.Driver.MySqlDataDriverNHibernateVersion=3.3.1.4000Culture=neutralPublicKeyToken=aa95f207798dfdb4. ---> System.Reflection.TargetInvocationExceptionÖzel durum bir çağırma hedefi tarafından oluşturuldu. ---> System.ArgumentException: İstenen .Net Framework Veri Sağlayıcısı bulunamadı. Yüklü olmayabilir.
   
konumSystem.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
   
konumNHibernate.Driver.ReflectionBasedDriver..ctor(String providerInvariantNameString driverAssemblyNameString connectionTypeNameString commandTypeName)
   
konumNHibernate.Driver.MySqlDataDriver..ctor()
   --- &
#304;ç özel durum yığını izlemesinin sonu ---
   
konumSystem.RuntimeTypeHandle.CreateInstance(RuntimeType typeBoolean publicOnlyBoolean noCheckBooleancanBeCachedRuntimeMethodHandleInternalctorBooleanbNeedSecurityCheck)
   
konumSystem.RuntimeType.CreateInstanceSlow(Boolean publicOnlyBoolean skipCheckThisBoolean fillCacheStackCrawlMarkstackMark)
   
konumSystem.Activator.CreateInstance(Type typeBoolean nonPublic)
   
konumSystem.Activator.CreateInstance(Type type)
   
konumNHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary`2 settings)
   --- İç özel durum yığını izlemesinin sonu ---
   konum: NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary
`2 settings)
   
konumNHibernate.Connection.ConnectionProviderFactory.NewConnectionProvider(IDictionary`2 settings)
   konum: NHibernate.Cfg.SettingsFactory.BuildSettings(IDictionary
`2 properties)
   
konumNHibernate.Cfg.Configuration.BuildSettings()
   
konumNHibernate.Cfg.Configuration.BuildSessionFactory()
   
konumFluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
   --- &
#304;ç özel durum yığını izlemesinin sonu ---
   
konumFluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
   
konumDB.SessionFactory.CreateLoginFactory() E:\zf\DB\Session Factory.cs içindesatır 126
   
konumDB.SessionFactory..ctor(String szHostBoolean bIsLoginE:\zf\DB\Session Factory.cs içindesatır 56
   
konumLoginServer.Program.ServerStartup() E:\zf\LoginServer\Program.cs içindesatır 87