전체 글

전체 글

    [TIP] 컴파일시 에러/워링 메시지 제거

    [TIP] 컴파일시 에러/워링 메시지 제거

    소스모드 1.11+ 부턴 내부 컴파일러가 c++로 변경되었다. 따라서 이전보다 엄격한 문법작성을 요구하게 되었고, 이전 버전에서 작성된 플러그인들은 컴파일이 혹여 되더라도, 높은 확률로 워링, 심하면 에러를 맛보게 될것이다. 오늘은 필요없는 워링 메시지 제거 팁이다. #programa warning( disable : 241 ) 과 같이 워링메시지 번호를 입력해주자.

    [TIP] 벡터 다루기

    [TIP] 벡터 다루기

    지금 글은 계산하는 법에 대한 글이 아니다. 과거와 현재 트렌드를 비교하는글이다. 예전에는 소스모드 제공 함수를 이용해 위치벡터를 변수에 저장해 다뤘었다. 위와 같이 좀 더럽다. 요즘 트렌드는 아래와 같다.

    [TIP] 메소드맵 StringMap 예제

    [TIP] 메소드맵 StringMap 예제

    methodmap Player < StringMap { public Player(int id) { StringMap map = new StringMap(); map.SetValue("id", id); map.SetValue("userid", GetClientUserId(id)); map.SetValue("money", 100); return view_as(map); } property int Userid { public get() { int i; this.GetValue("userid", i); return i; } } property int Id { public get() { int i; this.GetValue("id", i); return i; } } property int Money { publi..

    [TIP] 타이머에서 체크목적 전역변수 대신 로컬변수 사용하기

    [TIP] 타이머에서 체크목적 전역변수 대신 로컬변수 사용하기

    타이머를 사용하다보면, 반복 타이머를 필연적으로 사용하게된다. 이때 내부적으로 얼마나 반복되었는지 체크를 하기위해서 전역변수를 만들어서 관리를 하게되는데 아래의 방법은 로컬변수로 체크가 가능한 방법이다. public void Skill8(int Client) { int count = 7; Skill8_1(Client, count); } public void Skill8_1(int Client, count) { count --; if(count

    [TIP] 신문법 훅 이벤트 변경점

    [TIP] 신문법 훅 이벤트 변경점

    기존 코드와 비교를 해보자. 위가 기존, 아래가 신문법이다. public Action:Event_EntityKilled(Handle:event, const String:name[], bool:dontBroadcast) { new Killer = GetEventInt(event,"entindex_attacker"); if (Killer > MaxClients || Killer < 1) return Plugin_Handled; //code here return Plugin_Handled; } public Action Entity_Killed(Event event, const char[] name, bool dontBroadcast) { int Killer = event.GetInt("entindex_atta..

    엘소드 kom 정보

    What’s inside each .kom file data: 001 - arbor day ui 002 - various skill sprites 003 - ice burner model 004 -in game’s loot model 005 - mobs ruben 006 - mobs elder 007 - mobs besma 008 - mobs peita 009 - mobs altera 1 010 - mobs altera 2 011 - model ally summon 012 - mobs events 013 - model npc 014 - chars dialogue image (epic quest) 015 - model aisha 016 - model accessories 017 - model elsword..

    Plugin 'org.apache.maven.plugins:maven-compiler-plugin:' not found 해결법

    Plugin 'org.apache.maven.plugins:maven-compiler-plugin:' not found 해결법

    pom.xml에 메이븐이 작동안할때가 있다. 이럴땐 가장 쉬운 방법은 build를 전부 지우고 디펜던시로 추가해주는것이다. org.apache.maven.plugins maven-compiler-plugin 3.8.1 그리고 메이븐 재빌드를 하면 된다. 그럼 아래와 같이 해결된다. 그외 방법은 스택오버플로우를 참조하길바란다.

    [스프링 부트] Process finished with exit code 0 해결법

    [스프링 부트] Process finished with exit code 0 해결법

    스프링 부트 프로젝트 실행하자마자 Process finished with exit code 0 가 뜨는 경우가 있다. 이는 실행은 되었는데 톰캣에 문제가 있는경우다. 주로 프로젝트 생성후 프로젝트를 바로실행하면 이런경우가 많다. 이땐 아래의 의존성을 추가해주자. Gradle 프로젝트 dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' } Maven 프로젝트 pom.xml org.springframework.boot spring-boot-starter-web