Jump to content

Chikan

Members
  • Posts

    902
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Posts posted by Chikan

  1. 40 minutes ago, Explv said:

    Issue solved.

    OP should have been using getWidgets().getWidgetContainingText not getWidgets().containingText

    And also the message "You must ask the foreman's permisson before using the blast furnace" should contain a line break tag "<br>"

    This line break tag is only visible if you look at the message in the widget debugger.

    "You must ask the foreman's permisson before using the blast<br>furnace"

    Ty dad

    59 minutes ago, Chris said:

    Null check when you interact please.

    >:c

    • Like 1
  2. Hey, so I'm trying to figure out how get a text value for this specific dialogue box.

    895edea435a54d246d67f87ec07f4c6e.png

    I've checked the widget debugger, and I've found

    getWidgets().containingText(229, "You must ask the foreman's permisson before using the blast furnace") != null

    This is what I can pull out of it, however when I go to try to use it

    if (getWidgets().containingText(229, "You must ask the foreman's permisson before using the blast furnace") != null) {
    	hasPayedForeman = false;
    }

     

    After this my script goes into the task to pay the foreman

     

    NPC foreman = getNpcs().closest("Blast Furnace Foreman");
    RS2Widget payWindow = c.getWidgets().get(219, 0, 0);
    		
    	if (payWindow == null) {
    			foreman.interact("Pay");
    			Timing.waitCondition(() -> getDialogues().inDialogue(), 3500, 1500);
    			
    	} else if (getDialogues().inDialogue()) {
    			if (payWindow != null) {
    				getDialogues().selectOption(1);
    				hasPayedForeman = true;
    			}	
    		}		
    	}

     

    My problem is that it just loops between the two in I guess a kind of "spammy" fashion, instead of the boolean going to false while the widget is != null and then going back to true after the foreman is paid.

  3. 1 hour ago, Explv said:

    Yeah that sounds like you will just be using an existing game engine rather than creating your own.

    If you provide us with more information on the syllabus we would be able to tell you more precisely what to expect.

    Have fun taking the course anyways, even though it wasn't your first choice i'm sure it'll be useful and interesting in some regard.

     

    I'll definitely learn important things either way, my other choice was for things involved in Linux, Apache, mySQL, basically just covering the bases for DB's.

     

    Course description:

     

    This course introduces the use of a current commercial game engine, with the focus on programming, scripting, and the underlying math concepts in use to implement the graphical and physical simulation aspects. Following INFO-1150, it will focus on fundamental object oriented programming concepts such as encapsulation, inheritance, and polymorphism.

     

  4. 18 minutes ago, Explv said:

     

    This question is honestly too vague to be answered properly.

    Do your courses not have a description of what it will cover?

    I would imagine a generalized C++ course would cover the basics of programming and also some C++ specific content, whereas the game programming course would focus less on the programming basics and more on theory / code design for games..

    But it's impossible for me to say because these courses vary widely between universities, the only way for you to really know is to ask whoever is running the course.

    I was looking for a vague, slightly related answer. The courses do have a syllabus for what they'll be delving into, but I guess I could have worded my question better. I suppose I'm looking for some more insight into what it's like to take these kinds of courses from people who have. (I don't really know anyone first hand from my uni who's taken these, which is kind of why I'm asking here)

     

    10 minutes ago, Alek said:

    I'm always skeptical of courses that have the word "game" in it. That class can either go two ways:

    1. You're creating a game engine using C++ and 3d math
    2. You're scripting on a game engine like Unreal with C++

    A C++ only class is most likely some sort of algorithms class, traversing trees and that kind of stuff. 

    I'm still skeptical as well, as this wasn't my first choice. But since the school took their sweet time finalizing my registration for second semester, I got put to the back of the line in terms of choices. The actual title is "Programming with commercial game engines" -- So I'd assume I'll be expecting something in Unity or Unreal engine like you had mentioned.

    Have you ever done any work with those two game engines?

  5. Hey everyone,

    I've just recently gotten my schedule for my next semester and got placed into a course I didn't expect to get placed into. This course is for programming commercial game engines with C++, my question is, does anyone here have experience doing something similar? If so, what could I potentially learn while taking this class as opposed to a class more generalized towards C++ alone?


    (I realize these are broad questions, but any input to prepare me is appriciated)

    Thanks in advance for your responses!

×
×
  • Create New...