Jump to content

Recommended Posts

Posted

Hello, i tried to use the code of Zoey76 on c++ which application for purpose is to open l2.bin.using that IP parameter in the shellexecute won't work at all, at least not when I'm using L2.exe in the command. using L2.bin I'm always prompted to choose an application to open it with

 

#define _WIN32_WINNT _WIN32_WINNT_WINXP
#define NOMINMAX
#include <iostream>
#include <windows.h>
#include <cstdlib>

using namespace std;

// Start L2 as .bin with IP as parameter.
// You can use IP or DNS as IP parameter.
// You could include other parameters.
// You can change the path to the .bin file to avoid including the L2.exe inside the System folder.
// Author: Zoey76
int _stdcall wWinMain(HINSTANCE hInst, HINSTANCE prevInst, LPWSTR szCmdLine, int nCmdShow)
{
    ShellExecute(0, L"open", L"cmd.exe", L"/C C:\Program Files (x86)\Lineage II\system start l2.bin IP=127.0.0.1", 0, SW_HIDE);
    system("PAUSE");
}

 

 

Posted (edited)

@eressea Because my goals are differents.

 When i'm trying to open l2.bin with command prompt i get message with i need to choose application which i open the l2.bin it's not normal. Do you know another way to started l2.bin file?

Edited by vladislavl2a
Posted

Is there way to start .bin file ? Why i get everytime message with choosing application? I can only start l2_start.exe that calls l2.exe to start the game(l2.bin).Is there a way to run l2.bin file by command prompt or another program?

Posted

its your windows specific problem, most prolly .bin file isn't defaulted as executable - you can run assoc command in cmd and check if says .bin=exefile

more on that: https://www.maketecheasier.com/change-file-associations-windows10/

 

but in your case, you can run l2.bin via cmd file to avoid that problem at all (my previous post), just keep in mind use of IP= argument can be disabled in l2.ini, also not sure if its even available in older chronicles, used it on GOD+ clients only.

Posted (edited)

Doesn't work. Everytime when i send message by cmd "start l2.bin IP=127.0.0.1" or "start l2.bin" i get message "Access denied" even with an administrator in cmd and futhermore i get message by windows 10 "The application is not compatible with your computer". Perhaps the problem is windows 10, can anyone tell me if this is the problem? In my case .bin format can't be executable.

And one more when i check .bin=exefile with command "assoc", i just don't see anywhere .bin or .bin=exefile or otherwise.

Edited by vlladislav45
assoc command
  • Sad 1
Posted (edited)

Just run cmd.exe (not PowerShell crap) as administrator and start l2.bin from there lol.

Edit: nvm, this works on windows versions below 1809... windows ruined another thing yet again.

Edited by Nik

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.



  • Posts

    • L2Vitality Winter Season start December 1st! @followers, @everyone, @highlight, @όλοι 📌 Interlude Custom PvP Server Zariche Style 📌 🚨 219 Custom Additional Skills 🚨 🚨 Custom Weapons, Armor, Jewels, Wings, Tattoos and Agathions ⚔️ 9999x Exp/Sp | Player Start 99 Level ⚔️  ⬆️ Safe +15 | Max +30 | Blessed 85% ⬆️ 🏆 VIP Packages System (Lv 1-5) 🏆 ⚡ Free VIP 1+2 Start with 192 Skills and 89 Items +15 Enchanted (Click and Go) ⚡ 💥 Unique Content 💥 🔰 Easy Farm 💰 PLAY TO EARN SYSTEM WIN 50€ cash 💶 for 10k PvPs and 1k gameplay hours. 🔁 Grand Opening 1st December 2024 @ 20:00 GMT +2 🌐 Website: https://l2vitality.gr/  
    • Massive Black Friday Sale This Month!      View all offers     View our Services MASSIVE BLACK FRIDAY SALE THIS MONTH! FIND OUT MORE IN OUR WEBSITE 80% OFF NEW UPDATED PACKS FIND OUT MORE IN OUR WEBSITE HERE Complete Interlude PvP Server Complete HighFive Low/Mid/PvP Server   Complete Custom Interlude PvP Server Complete Classic Antharas 2.7 Low-Mid Rate Server   Complete Interlude Low-Mid Rate Server Complete Essence Low-Mid-PvP Rate Server Complete HighFive PvP Server for starters   Complete Interlude PvP Server Custom/No Custom for Starters   Complete Interlude PvP Server 2nd Build Project Vitality - Interlude Custom PvP Server with Custom Skills / items Project Opium - Interlude Low Rate No Custom Server   Project Duria - Interlude Custom PvP with Custom Learn Skills Project Flexara - HighFive no Custom PvP   Project Nasty - Interlude Custom PvP with Custom Items, Pride style Project Figma - HighFive no Custom Low Rate 50% OFF FOR NEW SERVER BUILDS FROM ZERO (L2BUILDER) USE PROMO #BLACKFRIDAY in NOTES L2Builder Build your Lineage2 Server from Zero with your selected options using our L2Builder! Web Design Are you looking to update your existing l2 website or get a new website? Server Marketing Promote your server with us and we guarantee that your advertisement will be shown everywhere across the l2 community!   Client Mods Get any client modification that you want for your Lineage 2 Server (any chronicle) Server Host The best web or dedicated server host out there with the best DDoS Protection Server Sources We have the best lineage 2 sources out there since 2006 built carefully without bugs!   Buy Votes Increase your server's visibility in all famous l2vote sites! Our Vote tool is a website where we help you to gain more traction to your private server by bringing more votes to your listing! We do all the heavy lifting like proxies, captcha’s, headless browsers and more so you don’t have to! Try free 20 votes today!   View all supported websites   Buy Guard Athena Guard – Layer 7 DDoS Protection Protect your server against DDos Attacks (Layer 7) IP bans and store in iptable. View more   Donate Panel Automatic Donate Panel v4 for L2JServer Automatic Paypal / Stripe Donate Panel for any L2J Server View more   L2Top Co for SALE L2TOP.CO Is a ranking website released in 2010 with 10,000+ Registered L2 Server owners accounts!   The website is for sale at a special price! Contact Us OTHER LINKS FREE SHARES VIP SHARES APPLY FOR JOB ATHENA PROJECT LIMITED     
    • Hey there, topic type is wrong since there's no LF on this section, but I need client side help so I felt like posting here. I'm looking for some help on client side to change the WASD movement. I'll share a video, part 1 is what I have right now and part 2 what I'd like to add on my project. (Moving with WASD I want the camera to be static even if the character moves around, like on Essence client, I have classic Zaken project). https://streamable.com/3c135q
    • I found this video, I guess you folks should take care before buying adena from "black market".    
  • Topics

×
×
  • Create New...