[ d ] [ b / cu / dev ] [ r ] [ a / ts ] [ ci ] [ gnx / int ] [ misc ] [ dev / stat ]
[Burichan] [Futaba] [Gurochan] [Tomorrow] [Архив-Каталог] [Главная]

Файл: ?.png -(144 KB, 476x354, ?.png)
144 No.8076  
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  
Файл: >_<.gif -(449 KB, 207x360, >_<.gif)
449
>>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  
Файл: CRAZY1!!!!!!!!90a2c869299e323c3fd54e4f0d4bd329.png -(1116 KB, 800x866, CRAZY1!!!!!!!!90a2c869299e323c3fd54e4f0d4bd329.png)
1116
>>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  
Файл: Doubt3_0168.jpg -(82 KB, 849x254, Doubt3_0168.jpg)
82
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  
Файл: !1338067525166.jpg -(141 KB, 635x750, !1338067525166.jpg)
141
>>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  
Файл: denpa!1348267467925.jpg -(83 KB, 482x500, denpa!1348267467925.jpg)
83
>>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  
Файл: yuukaww1345797126923.png -(29 KB, 800x473, yuukaww1345797126923.png)
29
>>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  
Файл: ?.jpg -(43 KB, 577x622, ?.jpg)
43
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  
Файл: ??1330674359610.jpg -(141 KB, 1280x720, ??1330674359610.jpg)
141
>>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  
Файл: irisu.png -(310 KB, 736x807, irisu.png)
310
i am having issues with uploading code to sourgeforge

i can host the git respiratory
>> No.8127  
Файл: irisu^^1344225638919.png -(239 KB, 608x800, irisu^^1344225638919.png)
239
[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  
Файл: ^^koishi1342115894285.png -(115 KB, 495x504, ^^koishi1342115894285.png)
115
https://sourceforge.net/p/project16/code/ci/28e927f66582ce8d4437da3f0d5045f98a3ce9e3/tree/

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

^^
>> No.8214  
Файл: 1250036557055.jpg -(30 KB, 450x287, 1250036557055.jpg)
30
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  
Файл: koishi1341304666738.jpg -(1331 KB, 1748x2480, koishi1341304666738.jpg)
1331
>>8267

even cuter than koishi's adventure
>> No.10919  
Файл: dark!!1389081869562.jpg -(300 KB, 743x743, dark!!1389081869562.jpg)
300
the game took a dark turn now
>> No.13003  
Файл: yangire &lt;31378197461060.jpg -(18 KB, 500x313, yangire &lt;31378197461060.jpg)
18
this thread is old as fuck
>> No.21311  
разговор окончен
>> No.21312  
>>21311
Добра тебе, некродебиляша :3



[ d ] [ b / cu / dev ] [ r ] [ a / ts ] [ ci ] [ gnx / int ] [ misc ] [ dev / stat ]
[Burichan] [Futaba] [Gurochan] [Tomorrow] [Архив-Каталог] [Главная]