FOnline Development > Questions and Answers

Help for beginer

<< < (2/4) > >>

remake:

--- Quote from: ShOw.CZ on January 08, 2019, 11:37:20 pm ---1) Do the cheats.fos need any edit to work completely?

--- End quote ---
Only in function

--- Code: ---bool GodOfTheRealm(uint id)
--- End code ---
if you want to have stronger powers than other admins.


--- Quote from: ShOw.CZ on January 08, 2019, 11:37:20 pm ---2) Why if i want `controlnpc -n xxxxxxxx it does not work
3) Why dont `clone works? It says you clone into yourself
4) Why some of commands does not work? Like explode,airstrike etc. , is there anything i need to do for make all works?

--- End quote ---
To understand the algorithm you must learn how to code first.


--- Quote from: ShOw.CZ on January 08, 2019, 11:37:20 pm ---5) Can anyone explain me why does god,mortal,imsospeed etc. need ~run cheats god 0 0 0? why this dont work like `god -p 0

--- End quote ---
Void functions which don't return any value, but have (Critter@, int, int, int) as arguments can be called by ~run command. If you want to call them by `someexamplecommand you need to code them in cheats.fos.


--- Quote from: ShOw.CZ on January 08, 2019, 11:37:20 pm ---6) Can anyone tell me why npc(critter)ID work for (~) commands and dont work for (`) commands

--- End quote ---
Any example function...?


--- Quote from: ShOw.CZ on January 08, 2019, 11:37:20 pm ---7) How to set all HPs visible on players,npc heads? Can see only players HPs
Etc.

--- End quote ---
All drawing functions at game's screen or interface can be placed in void render_iface(uint layer) function.


--- Quote from: ShOw.CZ on January 09, 2019, 08:23:38 am ---Its look like cheats is dissabled for npcs or cheats cant read npcs id

Please any hint?

--- End quote ---
If you are using -n parameter then try to use id of this npc without 5 at begin of id number. F.ex.: If your target npc has number 5000345 use

--- Code: ---`someexamplecommand -n 345
--- End code ---
or try

--- Code: ---`someexamplecommand -p 5000345
--- End code ---

ShOw.CZ:

--- Quote from: remake on January 09, 2019, 09:23:29 am ---1)To understand the algorithm you must learn how to code first.

--- End quote ---
How/Where i can learn?


--- Quote from: remake on January 09, 2019, 09:23:29 am ---2)If you are using -n parameter then try to use id of this npc without 5 at begin of id number.

--- End quote ---
Well you solve it! Its ID without 5 number at begin.

Thank you for great hint! Ill post more questions after i finish some editing.

EDIT: Did anyone scripted something for autodelete old worldsaves?

remake:

--- Quote from: ShOw.CZ on January 09, 2019, 12:52:46 pm ---How/Where i can learn?
--- End quote ---
(At least basics of) C++ and FOnline's classes.


--- Quote from: ShOw.CZ on January 09, 2019, 12:52:46 pm ---EDIT: Did anyone scripted something for autodelete old worldsaves?
--- End quote ---
It doesn't?

testerDEV:
Start from Slowhand's basic tutorial https://fodev.net/forum/index.php/topic,29789.0.html

If you can not code then you have 2 basic ways. First one is focused on tools such as map and dialog editors or design arts. If you are interested in deeper development then you should focus on programming. Learning basics is relatively easy but the main problem is to understand a lot of other topics such as design patterns, oop, gui and generally reading other people's code and understand it.

remake:

--- Quote from: testerDEV on January 11, 2019, 05:30:13 pm ---Start from Slowhand's basic tutorial https://fodev.net/forum/index.php/topic,29789.0.html
--- End quote ---
The knowledge about basic C++ syntax is like "must have" there anyway. In other case it will be the dead end.


--- Quote from: testerDEV on January 11, 2019, 05:30:13 pm ---If you can not code then you have 2 basic ways. First one is focused on tools such as map and dialog editors or design arts.
--- End quote ---
Dialogs and maps always end with the code and here's no exception. Without the code these parts of the game will be displayed in the game but still will be useless. Learn it or find someone who will write scripts for you.
As arts designer, skipping the issues about, your skills, drawing software, making 3D elements with layers and saving them as 2D elements with proper isometric look, you also must know how to apply your graphic elements in the game.


--- Quote from: testerDEV on January 11, 2019, 05:30:13 pm ---If you are interested in deeper development then you should focus on programming. Learning basics is relatively easy but the main problem is to understand a lot of other topics such as design patterns, oop, gui and generally reading other people's code and understand it.
--- End quote ---
Main tools:
1. Paper notes (not text files),
2. Pens, few colors,
3. Patience,
4. Willingness,
5. The knowledge or willingness to learn how to code.

Example: Notes from upgrading FOnline: Reloaded S2 to rev 412.


Note everything in one color, describe it in other one, mark the possible differences, a lot of practice...
With this you don't have any possibility to not learn.
All of these tips are checked on my self, and they're working well for someone who want to be even a super-hero-dev, not only in FOnline.

Good Luck!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version