Jump to content

abumini

Members
  • Posts

    51
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by abumini

  1. I'ts base64, the default. "PasswordHashType": "Default", I've tried to debug the code, on login, the password verification, runs this method: public static string ToL2Password(this string str) { if (Startup.Configuration.GetValue<string>("TargetServerType") == "L2OFF") { if (Startup.Configuration.GetValue<string>("PasswordHashType") == "Default") { return L2OffCrypto.EncryptLegacyL2Password(str); } else { return L2OffCrypto.EncryptMD5(str); } } /* and it always ends in choosing else, since the server is L2j, login works, change password doesnt*/ else { SHA1 shA1 = SHA1.Create(); byte[] bytes = new ASCIIEncoding().GetBytes(str); str = Convert.ToBase64String(shA1.ComputeHash(bytes)); return str; } } and it works for the login, but when it comes to changing the password, it always ends up in error 501 : [HttpPost] [Route("changepass")] public async Task<IActionResult> ChangePassword([FromBody] ChangePassViewmodel model) { if (User.Identity.IsAuthenticated) { var accountName = HttpContext.GetUsername(); var response = await _requestService.ChangePassword(accountName, model.CurrentPassword.ToLegacyL2Password(), model.NewPassword.ToL2Password()); switch (response.ResponseCode) { case 200: return Content("ok"); case 500: return Content(_localizer["Something went wrong!"]); case 501: return Content(_localizer["Invalid password!"]); } } return Unauthorized(); } And I don't get any error messages on the console either from the API or from the website.
  2. I'm not at home now, but I think i left it as default. Where can I confirm it ? Im getting error 501 Invalid Password.
  3. Did anyone had problems with the change password part? I'm getting always "Invalid Password", even if I input the correct password. I got a feeling that the function isn't comunicating with the API/database. I'm using it with Acis. If anyone got some hints I let me know ;) Thanks
  4. Can anyone give me hint here. Everything works fine, except the registration. I'm getting unsuccessfull registration, don't know why. Any hints?
  5. Your having permission errors, see if the user running the program has enought privileges.
  6. Hi again lol. After getting it to work on windows, I embarqued on a new journey, trying to get it to work on linux! And it hasn't been easy. Anyone here who has this platform, the website part, working with linux? I could use some barinstorming or advices on what to use. And before you start posting links, I've already fallowed the one Elfocrash left from Microsoft on running .NET core project on apache
  7. It was remote connection, but I've already given up the idea of running l2off :/ l2j is so much simple and organized. Thanks for the reply ;)
  8. Wrong NAS propertie at firewall. problem solved. Close plz
  9. is this inside Eclipse or on the operative system java folder? Answer: This must go inside the cliente that's running the ASP.net Got it working. It now seems so simple -.-' Sorry about beeing a pane in the ass for some.
  10. I've been tryin to get this L2ACP system to work on my server, but without any luck of working. I've compiled the projects, edited and corrected the api for Acis, published the web app, but my server for some unkown reasonit doesnt responde to the requests made from the web app. I've checked port 8000 on my server firewall and was open, tryed with DMZ, and still with no luck. I believe something is wrong, but don't know why, the api was properly corrected, server is running without errors, but the web app doesnt comunicate with the port 8000 on the server. HELP :) thanks
  11. When I run the gameserver with the API in it, and test the port 8000 to see if the application is listening, the report says it doesnt. dumb question: Does the website app needs to be on the same machine as the gameserver to be able to run the website application? Problem solved, wrong number on NAS route. my bad....
  12. So the connection is made to the port 8000, to the api correct? I have my website in a differente server than my gameserver. However I'm not beeing able to get a connection to the api on the gameserver, port 8000 is open, I've even tryed with DMZ on. Is there anything we need to do on the API ? and yes, before you question the obvious, I'm not using http://127.0.0.1:8000/api, im using it with my gameserver ip. http://gameserver_ip_here:8000/api Problem solved
  13. Hi everyone, I'm having some trouble connecting to my server. I've configured the server files like 3 times already from nothing, and I always end up with either stuck on server selection or with a disconnect message, or a Access Failed message. I've done a lot of work with L2j, but L2OFF is an entire new world for me... If anyone could help m I would appreciate it. thx
  14. I've already noticed that a long time... And in my previews reply I questioned that same point, and I left an example on how I think it should be in case of an l2j mysql connection. Should it look like this ? I couldn't connect either, so answers like your just beeing redundante don't help much, confirmation on the other hand help, like yes, or no, try it this way. So I'll ask again, should it be like this? connectionString_lin2world="Data Source=localhost;port=3306;Initial Catalog=SampleDB;User Id=mudassar;password=pass@123" connectionString_lin2db="Data Source=localhost;port=3306;Initial Catalog=SampleDB;User Id=mudassar;password=pass@123" because what is left there doesnt have login and password to connect to the database: "ConnectionString_lin2world": "Data Source=PJASICEK-PC\\SQLEXPRESS;Initial Catalog=lin2world;Integrated Security=True", "ConnectionString_lin2db": "Data Source=PJASICEK-PC\\SQLEXPRESS;Initial Catalog=lin2db;Integrated Security=True", from my breef contact with L2Off files I know there is a database lin2world and lin2db, on l2j there isn't one, so I'm a bit confused as to, am I looking at the proper place? I've never worked on VIsual Studio to launch apps for webserver, so I'm learning, the same way I learned how to work with java, the difference is that on java there is a lot of documentation, or used to be, on asp.net regarding lineage 2 projects there isn't much. If you could point me in the direction I need to go, I would really appreciate. Thanks
  15. Can you please elaborate? targetservertype is l2j because the server is l2j, thats what i understanded that that field was meant to do: allow you to choose l2j or l2off. In my case, I wan't it to point to an Acis server Another consern here is this: "ConnectionString_lin2world": "Data Source=PJASICEK-PC\\SQLEXPRESS;Initial Catalog=lin2world;Integrated Security=True", "ConnectionString_lin2db": "Data Source=PJASICEK-PC\\SQLEXPRESS;Initial Catalog=lin2db;Integrated Security=True", by my understanding, this two connections are pointing to a l2off database, that is in PJASICEK-PC, and they are SQLExpress and not mysql, am I correct? Shouldn't it be like this in order to connect to a mysql database?: connectionString_lin2world="Data Source=localhost;port=3306;Initial Catalog=SampleDB;User Id=mudassar;password=pass@123" connectionString_lin2db="Data Source=localhost;port=3306;Initial Catalog=SampleDB;User Id=mudassar;password=pass@123" I haven't found where the database config file for the logins are meant to be. I'm really confused -.-' googling about asp.net did not help much on this matter.
  16. What file should I use to configure the database connection? appsettings.json? if it's appsettings.json, can someone help me? I'm a bit confused on what do use here, I got gameserver,login and database on a the same server but the website is on a different server, can someone enlight me on what to do here? Thanks
  17. I've been looking for Trance's instance, but had no luck, can you point me in the right direction?
  18. Hey everyone, I'm trying to renew my old l2j website (a costum builded one, very old lol), I wanted to use wordpress for this, but I'm having trouble making a connection with l2j account table and the wordpress account. I know there are a lot of plugins for user registration, but they are prebuilded to register in wordpress tables, I wanted them to register on l2j account table, or at least for the both to be synched, but since wordpress passwords have different encryption than l2j, don't know how to make them work. I'm looking for any feedback from other previous attemps, guides, videos, I'm not afraid to do a search for content, but for this its beeing kind of hard to find anything.
  19. Hi Nexus, how can I use wordpress registration forms to solve that issue? Won't the encryption of wordpress passwords (salt+MD5) make it incompatible? Is there a guide you can send me that might help overcoming that problem?
  20. You're getting that date because the time for the events is not defined, that date is usally for random generation or undefined dates.
  21. try to debug it. and see what's missing. Mine is working witouth a problem. if you bypass states "voiced_" then the htm command should be: <button value="Repair" action="bypass -h voice_startrepair $name" width="75" height="26" back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"> You don't need to edit anything else in the htm. If it didn't work, try it on a fresh instance and track down the culprit.
  22. It's not the .repair thats wrong. Your VoiceCommand probably doesn't have a condition in the RequestBypassToServer.java for the command "voice_" or "voiced_", it depends on what version you created. Try adding this: https://pastebin.com/ttb3FW5Q
  23. Problem has been solved it was a conflict between the OfflineShop mod and the Aio Mod in the CharInfo.java and UserInfo.java. Thanks for the help Sweets and Reeborn12. Topic can be closed now.
  24. Its not there, it's still black :/ Just debugged and it looks like the server packets send the proper color in MSaddress, so on that case it must be client side no? Update: tried on a fresh Interlude with no add ons and the problem persists. If there are any other ideas feel free to post them, Ill try everything I can. Appreciate all the help I can get with this situation, thanks! :D
×
×
  • Create New...