[WT] [Архив]  [Поиск] Главная Управление
Ычан: [d | b / bro / gf / hr / l / m / med / mi / mu / o / ph / r / s / sci / tran / tv / x | vg | au / tr | a / aa / c / fi / jp / rm / tan / to / vn]
[Совместно с Ычаном]
[Назад]
Ответ в нить
Имя
Animapcha image [@] [?]
Тема   ( ответ в 8076)
Сообщение flower
Файл 
Пароль  (для удаления файлов и сообщений)
Параметры   
  • Прежде чем постить, ознакомьтесь с правилами.
  • Поддерживаются файлы типов 7Z, BZ, BZ2, GIF, GZ, JPG, MO, MP3, MP4, OGG, OGV, PDF, PNG, PSD, RAR, SVG, SWF, TXT, WEBM, XCF, ZIP размером до 5000 кБ.
  • Ныне 2984 unique user posts. Посмотреть каталог
  • Максимальное количество бампов нити: 500
135401068155.png-(144.78KB, 476×354, ?.png)
8076
No. 8076 watch    
I need your help!!

how do i make a gobal switch variable for the game engine to act as the master game test switch?

to switch from the different video modes i have created

code: http://4ch.maidlab.jp/16bee.zip

irc://irc.rizon.net/project16
irc://4ch.maidlab.jp/16
Развернуть все изображения
No. 8077    
Again, you should specify what game engine do you use.
No. 8078    
135401094373.gif-(449.02KB, 207×360, >_<.gif)
8078
>>8077
The engine is built by a friend of mine who did not document it very well
No. 8079    
Then, I guess, your friend must know it. Did you ask your friend?
No. 8080    
>>8079
I cannot contact him
and he is very very very very busy all the time
No. 8081    
;_;
No. 8082    
>>8081 Lol 410chan pretty slow, you don't hurry to hell
No. 8083    
135401227032.png-(1.09MB, 800×866, CRAZY1!!!!!!!!90a2c869299e323c3fd54e4f0d4bd329.png)
8083
>>8082
i live in hell
No. 8084    
I don't think someone can answer your question. You should've at least give a link to download the engine. But if it's fully in japanese, no one can read it anyways... And there's no guerantee that someone would bother to study the whole engine system just for answering your question. Also, are you sure the switch is possible at all?
No. 8085    
135401379131.jpg-(82.45KB, 849×254, Doubt3_0168.jpg)
8085
eng_core.c line 108.

bool Core::init(){
bool xz = 0; // error switch...
std::cout << "VIDEO INITIATION" << std::endl;
setvideo(0x13, 1);


this looks like place, where video mode being switched.

i think you should add some global variable to the eng_core.h file at the "protected" section, and add function like "setModeFlag(<your mode>)" to public.

You should also reinit your engine with new video mode (it must be called every time when you call setModeFlag()).

this is how it looks like at a first sight.
No. 8087    
135401394717.jpg-(141.56KB, 635×750, !1338067525166.jpg)
8087
>>8085

ohh not that area of the engine

the code at src/eng_comm.cpp

the qing variable needs to be a global engine variable
No. 8088    
135401430186.jpg-(83.36KB, 482×500, denpa!1348267467925.jpg)
8088
>>8087
because that file is supposed to change the qing variable! not run the functions that use the qing variable. also
the engine needs a global X,Y for the game level system and player position
No. 8089    
>>8087
>eng_core.h

you need to define all engine specific variable here, i suppose.

at eng_common you just specify function within "engine" namespace (this means that you can acess functions and classes defined inside).
You must rewrite your function, if you want it to acess data inside "engine" object. Or just define "global" static variable, but this is not that you want i bet.
No. 8090    
135401502211.png-(29.15KB, 800×473, yuukaww1345797126923.png)
8090
>>8089
!!!!!!

the DOS LIBRARY

look in src/lib/ to see the dos library

as you can see it's in C style and out side the engine name space

this must be why the engine is so slow!!

ok where do i start?
No. 8091    
>>8088
>eng_core.cpp
>void Core::input(){

this is a place where user input are served.
you must modify this function.

and also you should add quing variable to protected section of eng_core.h, this make it "engine global".
No. 8092    
135401519963.jpg-(43.05KB, 577×622, ?.jpg)
8092
i add

#include <list>
#include "src\engine.h"

to src/lib/lib_com.h
?
No. 8093    
>>8091
the qing variable is a non static variable
No. 8094    
>>8092
don't think this would work.
you must work inside your engine object (if i got the idea this object is created when program starts, and after it just run in loop, calling functions
sync();
input();
update();
if you try to use dos interruptions outside main program loop, this must look like program is 'lagging', but this is not correct, cause engine just run in loops at 100% of cpu.
No. 8095    
sory m8t, mom just call me to help her. must go now.
No. 8096    
>>8091
ok i am changing it into a CHAR
No. 8097    
>>8095
aww
No. 8119    
You should set up a GIT repo or something.
No. 8121    
13541962947.jpg-(141.90KB, 1280×720, ??1330674359610.jpg)
8121
>>8119

i should.... wwww

git on my home server or sourgeforge?
No. 8122    
>>8121
You may use sourceforge, github, bitbucket, etc.
No. 8123    
>>8122
ok sourge forge when i return to my compy4
No. 8125    
135424226626.png-(310.53KB, 736×807, irisu.png)
8125
i am having issues with uploading code to sourgeforge

i can host the git respiratory
No. 8127    
135426260781.png-(239.09KB, 608×800, irisu^^1344225638919.png)
8127
[20:05:50][/dos/z/16]
[sparky4@compy4]$ git push origin master
Password:
error: src refspec master does not match any.
error: failed to push some refs to 'ssh://sparky4q@git.code.sf.net/p/project16/code'
No. 8128    
135427027388.png-(115.31KB, 495×504, ^^koishi1342115894285.png)
8128
https://sourceforge.net/p/project16/code/ci/28e927f66582ce8d4437da3f0d5045f98a3ce9e3/tree/

http://4ch.maidlab.jp/gitweb/?p=16.git;a=summary

^^
No. 8214    
135540466510.jpg-(30.34KB, 450×287, 1250036557055.jpg)
8214
ageru
No. 8267    
>you play as a cute synthetic robotic loli whit a massive white tshirt on who just "woke up"

Best thing ever!
No. 8271    
135595133559.jpg-(1.30MB, 1748×2480, koishi1341304666738.jpg)
8271
>>8267

even cuter than koishi's adventure
No. 10919    
138946964734.jpg-(300.82KB, 743×743, dark!!1389081869562.jpg)
10919
the game took a dark turn now
No. 13003    
14379402054.jpg-(18.89KB, 500×313, yangire &lt;31378197461060.jpg)
13003
this thread is old as fuck
No. 21311    
разговор окончен
No. 21312    
>>21311
Добра тебе, некродебиляша :3
Удалить сообщение []
Пароль  
[Mod]